docs.unity3d.com
    Show / Hide Table of Contents

    Class AssetProductReference

    Class AssetProductReference.

    Inheritance
    Object
    AssetProductReference
    CatalogProductReference
    Namespace: UnityEngine.Industrial.Configuring.Core
    Syntax
    [Serializable]
    public class AssetProductReference

    Constructors

    AssetProductReference(AssetReferenceGameObject)

    Initializes a new instance of the AssetProductReference class.

    Declaration
    public AssetProductReference(AssetReferenceGameObject assetReference)
    Parameters
    Type Name Description
    AssetReferenceGameObject assetReference

    The asset reference.

    Fields

    key

    Contains an editorAsset GUID or a Catalog address if 'CatalogProductReference'.

    Declaration
    [SerializeField]
    public string key
    Field Value
    Type Description
    String

    Properties

    AssetReference

    Gets or sets the asset reference.

    Declaration
    public AssetReferenceGameObject AssetReference { get; set; }
    Property Value
    Type Description
    AssetReferenceGameObject

    The asset reference.

    FriendlyName

    Gets or sets the name of the friendly.

    Declaration
    public virtual string FriendlyName { get; set; }
    Property Value
    Type Description
    String

    The name of the friendly.

    Product

    Gets the product.

    Declaration
    public Product Product { get; }
    Property Value
    Type Description
    Product

    The product.

    Methods

    IsProduct(Product)

    Determines whether the specified other is product.

    Declaration
    public bool IsProduct(Product other)
    Parameters
    Type Name Description
    Product other

    The other.

    Returns
    Type Description
    Boolean

    true if the specified other is product; otherwise, false.

    IsValid()

    Returns true if ... is valid.

    Declaration
    public virtual bool IsValid()
    Returns
    Type Description
    Boolean

    true if this instance is valid; otherwise, false.

    LoadAssetAsync<TObject>()

    Loads the asset asynchronous.

    Declaration
    public virtual AsyncOperationHandle<TObject> LoadAssetAsync<TObject>()
    Returns
    Type Description
    AsyncOperationHandle<TObject>

    AsyncOperationHandle<TObject>.

    Type Parameters
    Name Description
    TObject

    The type of the t object.

    ReleaseAsset()

    Releases the asset.

    Declaration
    public virtual void ReleaseAsset()

    SetAssetReference(AssetReferenceGameObject)

    Sets the asset reference.

    Declaration
    public void SetAssetReference(AssetReferenceGameObject assetReference)
    Parameters
    Type Name Description
    AssetReferenceGameObject assetReference

    The asset reference.

    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