Class Feature
Base class of features (e.g., variants, packs) which has a non-empty string code and is contained in a feature set.
Namespace: Unity.Industrial.Forma.Core.Variants
Syntax
public abstract class Feature : MonoBehaviour
Properties
code
Code of the feature.
Declaration
public string code { get; }
Property Value
| Type | Description |
|---|---|
| String | The code. |
featureSet
Feature set which contains this feature (must not be
null).
Declaration
public FeatureSet featureSet { get; }
Property Value
| Type | Description |
|---|---|
| FeatureSet | The feature set. |
Methods
SetCode(String)
Sets the code of this feature (must not be
null or contain
only whitespaces).
Declaration
public void SetCode(string newCode)
Parameters
| Type | Name | Description |
|---|---|---|
| String | newCode | The new code. |
Events
codeChanged
Raised when the code of the feature has been changed.
Declaration
public event CodeChangedHandler codeChanged
Event Type
| Type | Description |
|---|---|
| CodeChangedHandler |
globalFeatureChangedHandler
Occurs when [global feature changed handler].
Declaration
public static event CodeChangedHandler globalFeatureChangedHandler
Event Type
| Type | Description |
|---|---|
| CodeChangedHandler |