Interface IProductSource
Interface IProductSource
Namespace: Unity.Industrial.Forma.Core.AddressableSources
Syntax
[MovedFrom(true, "UnityEngine.Industrial.Configuring.ConfiguratorRuntime", "Unity.Industrial.Configurator", null)]
public interface IProductSource
Properties
IsFormaManaged
Check if the product source is managed by Forma code.
Declaration
bool IsFormaManaged { get; set; }
Property Value
| Type | Description | 
|---|---|
| Boolean | 
  | 
IsLoaded
Gets or sets a value indicating whether this instance is loaded.
Declaration
bool IsLoaded { get; set; }
Property Value
| Type | Description | 
|---|---|
| Boolean | 
  | 
IsLoading
Gets or sets a value indicating whether this instance is loading.
Declaration
bool IsLoading { get; set; }
Property Value
| Type | Description | 
|---|---|
| Boolean | 
  | 
ProductReferences
Gets the products.
Declaration
List<AssetProductReference> ProductReferences { get; }
Property Value
| Type | Description | 
|---|---|
| List<AssetProductReference> | The products.  | 
Methods
Load()
Loads this instance.
Declaration
IEnumerator Load()
Returns
| Type | Description | 
|---|---|
| IEnumerator | IEnumerator.  | 
RemoveProductReference(String, Boolean)
Removes the product.
Declaration
void RemoveProductReference(string key, bool sendEvent = true)
Parameters
| Type | Name | Description | 
|---|---|---|
| String | key | The key.  | 
| Boolean | sendEvent | if set to   | 
Unload()
Unloads this instance.
Declaration
IEnumerator Unload()
Returns
| Type | Description | 
|---|---|
| IEnumerator | IEnumerator.  | 
Events
onProductReferenceAdded
Occurs when [on product added].
Declaration
event ProductSource.ProductReferenceEvent onProductReferenceAdded
Event Type
| Type | Description | 
|---|---|
| ProductSource.ProductReferenceEvent | 
onProductReferenceRemoved
Occurs when [on product removed].
Declaration
event ProductSource.ProductGuidEvent onProductReferenceRemoved
Event Type
| Type | Description | 
|---|---|
| ProductSource.ProductGuidEvent |