Class AssetReference | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class AssetReference

    TODO - doc

    Inheritance
    System.Object
    AssetReference
    AssetReferenceT<TObject>
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEngine.AddressableAssets
    Syntax
    [Serializable]
    public class AssetReference

    Fields

    assetGUID

    Declaration
    public string assetGUID
    Field Value
    Type Description
    System.String

    Properties

    RuntimeKey

    Declaration
    public Hash128 RuntimeKey { get; }
    Property Value
    Type Description
    Hash128

    Methods

    Instantiate<TObject>(Transform, Boolean)

    Declaration
    public IAsyncOperation<TObject> Instantiate<TObject>(Transform parent = null, bool instantiateInWorldSpace = false)where TObject : Object
    Parameters
    Type Name Description
    Transform parent
    System.Boolean instantiateInWorldSpace
    Returns
    Type Description
    IAsyncOperation<TObject>
    Type Parameters
    Name Description
    TObject

    Instantiate<TObject>(Vector3, Quaternion, Transform)

    TODO - doc

    Declaration
    public IAsyncOperation<TObject> Instantiate<TObject>(Vector3 position, Quaternion rotation, Transform parent = null)where TObject : Object
    Parameters
    Type Name Description
    Vector3 position
    Quaternion rotation
    Transform parent
    Returns
    Type Description
    IAsyncOperation<TObject>
    Type Parameters
    Name Description
    TObject

    LoadAsset<TObject>()

    TODO - doc

    Declaration
    public IAsyncOperation<TObject> LoadAsset<TObject>()where TObject : Object
    Returns
    Type Description
    IAsyncOperation<TObject>
    Type Parameters
    Name Description
    TObject

    ReleaseAsset<TObject>(TObject)

    TODO - doc

    Declaration
    public void ReleaseAsset<TObject>(TObject obj)where TObject : Object
    Parameters
    Type Name Description
    TObject obj
    Type Parameters
    Name Description
    TObject

    ReleaseInstance<TObject>(TObject)

    TODO - doc

    Declaration
    public void ReleaseInstance<TObject>(TObject obj)where TObject : Object
    Parameters
    Type Name Description
    TObject obj
    Type Parameters
    Name Description
    TObject

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    ValidateType(Type)

    Declaration
    public virtual bool ValidateType(Type type)
    Parameters
    Type Name Description
    System.Type type
    Returns
    Type Description
    System.Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023