Class RuleSet
A RuleEngine set of Rules.
Inherited Members
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, InstantiateParameters)
Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEditor.PixyzPlugin4Unity.RuleEngine
Assembly: Unity.Pixyz.Plugin4Unity.Editor.dll
Syntax
[HelpURL("https://docs.unity3d.com/Packages/com.unity.industry.toolkit@3.0/manual/use-the-rule-engine.html")]
public sealed class RuleSet : ScriptableObject
Properties
Name | Description |
---|---|
IsRunning | Returns true if the RuleSet is currently running |
OnCompleted | Event when the RuleSet has finished running |
RulesCount | Number of rules in the RuleSet |
Methods
Name | Description |
---|---|
AppendRule(Rule) | Append a new Rule inside the RuleSet |
GetRule(int) | Get Rule at index |
GetRuleIndex(Rule) | Get a Rule index inside this RuleSet |
GetTotalBlocksCount(bool) | Get total number of Actions part of the Rules in the RuleSet |
InsertRule(int, Rule, bool) | Insert a new Rule inside the RuleSet |
IsValid() | Check if each action has valid input. |
RemoveRule(Rule) | Remove a specific Rule from the RuleSet |
RemoveRuleAt(int) | Remove a Rule from the RuleSet |
Run(bool, bool) | Run the RuleSet. Obsolete for asynchronous execution, use the RuleBatcher class instead. |
SetRule(int, Rule, bool) | Set a Rule inside the RuleSet |