Class PackSet
A pack set is a collection of features from which one can be selected.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.Industrial.Configuring.Core
Syntax
[ExecuteInEditMode]
public class PackSet : FeatureSet<Pack>, ISerializationCallbackReceiver
Methods
AddFeature(String)
Adds the feature.
Declaration
public override Pack AddFeature(string featureCode)
Parameters
Type | Name | Description |
---|---|---|
String | featureCode | The feature code. |
Returns
Type | Description |
---|---|
Pack | Pack. |
Overrides
UnityEngine.Industrial.Configuring.Core.FeatureSet<UnityEngine.Industrial.Configuring.Core.Pack>.AddFeature(System.String)
Exceptions
Type | Condition |
---|---|
Exception | Feature {featureCode} is already part of pack set {otherRoot.code}, which is not allowed. |
AddPack(Pack)
Adds the pack.
Declaration
public Pack AddPack(Pack pack)
Parameters
Type | Name | Description |
---|---|---|
Pack | pack | The pack. |
Returns
Type | Description |
---|---|
Pack | Pack. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Code must not be null or contain only whitespaces. |
ArgumentException | Code already exists in variant set. |
ArgumentException | Code must not be null or contain only whitespaces. |
ArgumentException | Code already exists in variant set. |