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 © 2022 Unity Technologies
    Generated by DocFX
    on Friday, March 4, 2022
    Terms of use