Class ProductPreview
Class ProductPreview.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.Industrial.Configuring.ConfiguratorRuntime
Syntax
[ExecuteInEditMode]
public class ProductPreview : ConfiguratorPreview
Fields
autoLoad
The automatic load
Declaration
[Tooltip("Ensures the product is loaded automatically.")]
[SerializeField]
public bool autoLoad
Field Value
Type | Description |
---|---|
Boolean |
OnChangedProduct
The on changed product
Declaration
public ProductPreview.OnLoadProductDelegate OnChangedProduct
Field Value
Type | Description |
---|---|
ProductPreview.OnLoadProductDelegate |
OnLoadProduct
The on load product
Declaration
public ProductPreview.OnLoadProductDelegate OnLoadProduct
Field Value
Type | Description |
---|---|
ProductPreview.OnLoadProductDelegate |
OnUnloadProduct
The on unload product
Declaration
public ProductPreview.OnUnLoadProductDelegate OnUnloadProduct
Field Value
Type | Description |
---|---|
ProductPreview.OnUnLoadProductDelegate |
removeOnBuild
The remove on build
Declaration
[Tooltip("Remove the product preview's product prior to building so that it is only loaded by the player.")]
[SerializeField]
public bool removeOnBuild
Field Value
Type | Description |
---|---|
Boolean |
Properties
productLoaded
Gets a value indicating whether [product loaded].
Declaration
public bool productLoaded { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
unloadingProduct
Gets a value indicating whether [unloading product].
Declaration
public bool unloadingProduct { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Methods
ActivateFeature(Feature)
Activates the feature.
Declaration
public void ActivateFeature(Feature feature)
Parameters
Type | Name | Description |
---|---|---|
Feature | feature | The feature. |
ActivateFeatures(List<Feature>)
Activates the features.
Declaration
public void ActivateFeatures(List<Feature> featureList)
Parameters
Type | Name | Description |
---|---|---|
List<Feature> | featureList | The feature list. |
AutoLoad(Boolean)
Automatics the load.
Declaration
public void AutoLoad(bool value)
Parameters
Type | Name | Description |
---|---|---|
Boolean | value | if set to |
EnsureUnloadProduct()
Ensures the unload product.
Declaration
public void EnsureUnloadProduct()
Load(Int32)
Loads the specified index.
Declaration
public void Load(int index = 0)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index. |
PostBuild()
Posts the build.
Declaration
public void PostBuild()
PreBuild()
Pres the build.
Declaration
public void PreBuild()
ProcessConfigurationReply(ProviderOperation<RuleEngineReply>)
Processes the configuration reply.
Declaration
protected void ProcessConfigurationReply(ProviderOperation<RuleEngineReply> reply)
Parameters
Type | Name | Description |
---|---|---|
ProviderOperation<RuleEngineReply> | reply | The reply. |
ReloadProviders()
Reloads the providers.
Declaration
public void ReloadProviders()
SwitchProduct(Int32)
Switches the product.
Declaration
public void SwitchProduct(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index. |
TryAutoLoad()
Tries the automatic load.
Declaration
public override void TryAutoLoad()
Overrides
TryAutoLoad(Int32)
Tries the automatic load.
Declaration
public void TryAutoLoad(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index. |
Unload()
Unloads this instance.
Declaration
public void Unload()