Class FeatureChange
Describes the change of a single feature.
Namespace: UnityEngine.Industrial.Configuring.Core
Syntax
public class FeatureChange
Properties
feature
Feature that is changing.
Declaration
public Feature feature { get; }
Property Value
Type | Description |
---|---|
Feature | The feature. |
isAdded
true
if added, false
otherwise.
Declaration
public bool isAdded { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
isRemoved
true
if added, false
otherwise.
Declaration
public bool isRemoved { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Methods
Add(Feature)
Creates and returns a feature change that adds a feature.
Declaration
public static FeatureChange Add(Feature feature)
Parameters
Type | Name | Description |
---|---|---|
Feature | feature | The feature. |
Returns
Type | Description |
---|---|
FeatureChange | FeatureChange. |
Create(Feature, Boolean)
Creates and returns a feature change that adds or removes a feature.
Declaration
public static FeatureChange Create(Feature feature, bool add)
Parameters
Type | Name | Description |
---|---|---|
Feature | feature | The feature. |
Boolean | add | if set to |
Returns
Type | Description |
---|---|
FeatureChange | FeatureChange. |
Remove(Feature)
Creates and returns a feature change that removes a feature.
Declaration
public static FeatureChange Remove(Feature feature)
Parameters
Type | Name | Description |
---|---|---|
Feature | feature | The feature. |
Returns
Type | Description |
---|---|
FeatureChange | FeatureChange. |