Class AssetReference | Package Manager UI website
docs.unity.cn
    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 © 2015-2018 Unity
    Generated by DocFX