docs.unity3d.com
Search Results for

    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)