Class MixedProductSource
Class MixedProductSource.
Inherited Members
Namespace: Unity.Industrial.Forma.Core.AddressableSources
Syntax
[MovedFrom(true, "UnityEngine.Industrial.Configuring.ConfiguratorRuntime", "Unity.Industrial.Configurator", null)]
[ExecuteInEditMode]
[Serializable]
public class MixedProductSource : MonoBehaviour, IProductSource
Properties
CatalogProductSourceImpl
Gets the catalog product source implementation.
Declaration
public CatalogProductSourceImpl CatalogProductSourceImpl { get; }
Property Value
Type | Description |
---|---|
CatalogProductSourceImpl | The catalog product source implementation. |
Id
Product source identifier (optional)
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
String |
IsFormaManaged
Check if the product source is managed by Forma code.
Declaration
public bool IsFormaManaged { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Implements
IsLoaded
Gets or sets a value indicating whether this instance is loaded.
Declaration
public bool IsLoaded { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Implements
IsLoading
Gets or sets a value indicating whether this instance is loading.
Declaration
public bool IsLoading { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Implements
ProductReferences
Gets the products.
Declaration
public List<AssetProductReference> ProductReferences { get; }
Property Value
Type | Description |
---|---|
List<AssetProductReference> | The products. |
Implements
ReferenceProductSourceImpl
Gets the reference product source implementation.
Declaration
public ReferenceProductSourceImpl ReferenceProductSourceImpl { get; }
Property Value
Type | Description |
---|---|
ReferenceProductSourceImpl | The reference product source implementation. |
Methods
Load()
Loads this instance.
Declaration
public IEnumerator Load()
Returns
Type | Description |
---|---|
IEnumerator | IEnumerator. |
Implements
RemoveProduct(String, Boolean)
Removes the product.
Declaration
[Obsolete("'RemoveProduct' is deprecated, please use 'RemoveProductReference' instead.")]
public void RemoveProduct(string key, bool sendEvent = true)
Parameters
Type | Name | Description |
---|---|---|
String | key | The key. |
Boolean | sendEvent | if set to |
RemoveProductReference(String, Boolean)
Removes the product.
Declaration
public void RemoveProductReference(string key, bool sendEvent = true)
Parameters
Type | Name | Description |
---|---|---|
String | key | The key. |
Boolean | sendEvent | if set to |
Implements
Unload()
Unloads this instance.
Declaration
public IEnumerator Unload()
Returns
Type | Description |
---|---|
IEnumerator | IEnumerator. |
Implements
Events
onProductReferenceAdded
Occurs when [on product added].
Declaration
public event ProductSource.ProductReferenceEvent onProductReferenceAdded
Event Type
Type | Description |
---|---|
ProductSource.ProductReferenceEvent |
Implements
onProductReferenceRemoved
Occurs when [on product removed].
Declaration
public event ProductSource.ProductGuidEvent onProductReferenceRemoved
Event Type
Type | Description |
---|---|
ProductSource.ProductGuidEvent |