Class Rule
Collection of Actions to run. Part of a RuleSet.
Implements
Inherited Members
Namespace: UnityEditor.PixyzPlugin4Unity.RuleEngine
Assembly: Unity.Pixyz.Plugin4Unity.Editor.dll
Syntax
[Serializable]
public sealed class Rule : ISerializationCallbackReceiver
Constructors
Name | Description |
---|---|
Rule() | Constructor |
Rule(Rule) | Copy constructor |
Properties
Name | Description |
---|---|
Blocks | The RuleBlocks part of this Rule |
BlocksCount | Number of Actions inside this Rule |
IsEnabled | Is the Rule enabled in its RuleSet |
Name | Rule name. |
Methods
Name | Description |
---|---|
AppendBlock(RuleBlock) | Append a RuleBlock at the end of the Rule |
GetBlock(int) | Get block at index |
GetBlockIndex(RuleBlock) | Get RuleBlock index inside this Rule |
InsertBlock(RuleBlock, int) | Insert a RuleBlock inside the Rule |
IsLastBlock(RuleBlock) | Is a RuleBlock at the end of the Rule |
OnAfterDeserialize() | ISerializationCallbackReceiver implementation |
OnBeforeSerialize() | ISerializationCallbackReceiver implementation |
RemoveBlock(RuleBlock) | Remove a RuleBlock from this Rule |
RemoveBlockAt(int) | Remove a RuleBlock from this Rule |
SetBlock(int, RuleBlock, bool) | Set a RuleBlock inside this Rule |