logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class RuleSOEditor

    Custom editor for RuleSO that provides conditional field display based on the rule effect. Shows only relevant fields for SetLayerWeight or TriggerAction effects. Provides inline condition editing with type dropdown and nested condition support.

    Inheritance
    object
    RuleSOEditor
    Namespace: Serenity.ProceduralAnimator.Infrastructure.Editor
    Assembly: Serenity.UnityProceduralAnimator.Infrastructure.Editor.dll
    Syntax
    public class RuleSOEditor : FoundationEditor<RuleSO>
    Remarks

    NOTE: the Serenity.Global.Infrastructure.Settings.Editor.FoundationEditor`1 base OnInspectorGUI draws ONLY the header + Id/Guid fields — it does NOT draw the remaining serialized fields (see UnityLogProfileEditor for the same documented gotcha). This editor hand-rolls every remaining field itself, so DrawSerializedFields() is overridden with an empty body to make that explicit.

    Constructors

    RuleSOEditor()

    Declaration
    public RuleSOEditor()

    Methods

    DrawSerializedFields()

    Declaration
    protected override void DrawSerializedFields()

    OnEnable()

    Declaration
    public override void OnEnable()

    OnInspectorGUI()

    Declaration
    public override void OnInspectorGUI()
    In this article
    © 2026 Serenity. All Rights Reserved