Class AssetProductReference
Class AssetProductReference.
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 |
|
IsValid()
Returns true if ... is valid.
Declaration
public virtual bool IsValid()
Returns
Type | Description |
---|---|
Boolean |
|
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. |