Extensions

Extension method collections for Unity Editor and Odin Inspector types. These provide fluent APIs and convenience helpers for custom editor tooling in the Paragon framework.

Architecture

spinner

Components

General Editor Extensions

Class
Extends
Description

GUIStyle

Fluent builder pattern for IMGUI style configuration

System.Type

Type hierarchy navigation via TypeTree

VisualElement

UI Toolkit display toggling and stylesheet copying

Odin Inspector Extensions

Class
Extends
Description

InspectorProperty

Property traversal, state management, drawer access

PropertyTree

Draw properties by path

Usage Pattern

All classes are static extension method collections in the Paragon.Editor namespace. Import the namespace to use them:

using Paragon.Editor;

// Fluent GUIStyle building
GUIStyle header = EditorStyles.boldLabel
    .WithFontSize(14)
    .WithAlignment(TextAnchor.MiddleCenter)
    .WithPadding(4);

// Odin property traversal
InspectorProperty parent = property.FindParentOfType<MyComponent>();
T state = property.GetState<T>("myKey", defaultValue);

Last updated