Sirenix

Extension methods for Odin Inspector (Sirenix) types. These provide convenience helpers for InspectorProperty traversal, state management, and PropertyTree rendering in custom Odin drawers.

Architecture

spinner

Components

Class
Extends
Description

InspectorProperty

Property traversal, state management, drawer lookup, indentation

PropertyTree

One-line property drawing by path

Usage Context

These extensions are used inside Odin OdinValueDrawer<T>, OdinAttributeDrawer<TAttr, TValue>, and custom editor implementations to simplify common Inspector property operations:

using Paragon.Editor;

// In a custom Odin drawer
protected override void DrawPropertyLayout(GUIContent label)
{
    // Draw all children of this property
    Property.DrawChildren();

    // Get/set persistent state
    bool expanded = Property.GetState<bool>("expanded", false);

    // Navigate the property tree
    var parent = Property.FindParentOfType<MyComponent>();
}

Last updated