Class CatalogProductReference
Class CatalogProductReference.
Inherited Members
Namespace: Unity.Industrial.Forma.Core.AddressableSources
Syntax
[MovedFrom(true, "UnityEngine.Industrial.Configuring.Core", "Unity.Industrial.Configurator", null)]
[Serializable]
public class CatalogProductReference : AssetProductReference
Constructors
CatalogProductReference(IResourceLocation, AssetProductReference.Options)
Initializes a new instance of the CatalogProductReference class.
Declaration
public CatalogProductReference(IResourceLocation mCatalogAsset, AssetProductReference.Options options = AssetProductReference.Options.Destroyable | AssetProductReference.Options.Deactiveable | AssetProductReference.Options.UseSpawnPoint | AssetProductReference.Options.UseProductCache)
Parameters
Type | Name | Description |
---|---|---|
IResourceLocation | mCatalogAsset | The m catalog asset. |
AssetProductReference.Options | options | Product options. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | mCatalogAsset |
Properties
FriendlyName
Gets or sets the name of the friendly.
Declaration
public override string FriendlyName { get; set; }
Property Value
Type | Description |
---|---|
String | The name of the friendly. |
Overrides
Methods
IsValid()
Returns true if ... is valid.
Declaration
public override bool IsValid()
Returns
Type | Description |
---|---|
Boolean |
|
Overrides
LoadAssetAsync<TObject>()
Loads the asset asynchronous.
Declaration
public override AsyncOperationHandle<TObject> LoadAssetAsync<TObject>()
Returns
Type | Description |
---|---|
AsyncOperationHandle<TObject> | AsyncOperationHandle<TObject>. |
Type Parameters
Name | Description |
---|---|
TObject | The type of the t object. |
Overrides
ReleaseAsset()
Releases the asset.
Declaration
public override void ReleaseAsset()
Overrides
SupportsAddressableLoadMode(Addressable.LoadMode)
Check if the reference supports the current addressable load mode.
Declaration
public override bool SupportsAddressableLoadMode(Addressable.LoadMode loadMode)
Parameters
Type | Name | Description |
---|---|---|
Addressable.LoadMode | loadMode | Supported load mode. |
Returns
Type | Description |
---|---|
Boolean |
|