Class AssetReferenceT<TObject> | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class AssetReferenceT<TObject>

    Inheritance
    System.Object
    AssetReference
    AssetReferenceT<TObject>
    AssetReferenceGameObject
    AssetReferenceSprite
    AssetReferenceTexture
    AssetReferenceTexture2D
    AssetReferenceTexture3D
    Inherited Members
    AssetReference.assetGUID
    AssetReference.RuntimeKey
    AssetReference.ToString()
    AssetReference.LoadAsset<TObject>()
    AssetReference.Instantiate<TObject>(Vector3, Quaternion, Transform)
    AssetReference.Instantiate<TObject>(Transform, Boolean)
    AssetReference.ReleaseAsset<TObject>(TObject)
    AssetReference.ReleaseInstance<TObject>(TObject)
    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
    public class AssetReferenceT<TObject> : AssetReference where TObject : Object
    Type Parameters
    Name Description
    TObject

    Methods

    Instantiate(Transform, Boolean)

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

    Instantiate(Vector3, Quaternion, Transform)

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

    LoadAsset()

    Declaration
    public IAsyncOperation<TObject> LoadAsset()
    Returns
    Type Description
    IAsyncOperation<TObject>

    ReleaseAsset(TObject)

    TODO - doc

    Declaration
    public void ReleaseAsset(TObject obj)
    Parameters
    Type Name Description
    TObject obj

    ReleaseInstance(TObject)

    TODO - doc

    Declaration
    public void ReleaseInstance(TObject obj)
    Parameters
    Type Name Description
    TObject obj

    ValidateType(Type)

    Declaration
    public override bool ValidateType(Type type)
    Parameters
    Type Name Description
    System.Type type
    Returns
    Type Description
    System.Boolean
    Overrides
    AssetReference.ValidateType(Type)
    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