docs.unity.cn
    Show / Hide Table of Contents

    Method CreateAssetReference

    CreateAssetReference(String)

    Create an AssetReference object. If the asset is not already addressable, it will be added.

    Declaration
    public AssetReference CreateAssetReference(string guid)
    Parameters
    Type Name Description
    String guid

    The guid of the asset reference.

    Returns
    Type Description
    AssetReference

    Returns the newly created AssetReference.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, June 26, 2023