docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Rule

    Collection of Actions to run. Part of a RuleSet.

    Inheritance
    object
    Rule
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)