Class AssetReference | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Class AssetReference

    TODO - doc

    Inheritance
    System.Object
    AssetReference
    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

    assetType

    Declaration
    public string assetType
    Field Value
    Type Description
    System.String

    Properties

    RuntimeKey

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

    Methods

    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

    InstantiateAsync<TObject>(Transform, Boolean)

    Declaration
    public IAsyncOperation<TObject> InstantiateAsync<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

    LoadAsync<TObject>()

    TODO - doc

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

    Release<TObject>(TObject)

    TODO - doc

    Declaration
    public void Release<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()
    Back to top Copyright © 2015-2018 Unity
    Generated by DocFX