Editor
Custom Inspector tooling for the Interaction System. Provides a custom editor for Interactable and Odin drawers for the InteractionTable, InteractionContext, and InteractionCondition — creating a cohesive, layered Inspector experience for authoring interactions.
Architecture
Data Flow
Key Concepts
Prefab protection
InteractableEditor prevents editing on prefab instances; AttributeProcessor disables context menus
Layered drawers
Table → Context → Condition, each drawer handles one level of the hierarchy
Custom add function
InteractionTableDrawer injects a custom add function that creates properly constructed InteractionContext instances
Negate toggle
InteractionConditionDrawer renders the negate flag as a red exclamation icon button
Polymorphic selection
Null conditions and interactions use Odin's PolymorphicObjectField for type selection
Classes
Custom editor for Interactable — read-only on prefab instances
Drawer for InteractionTable — list rendering with custom add function
Drawer for InteractionContext — foldable panel with triggers/conditions/interaction
Drawer for InteractionCondition — foldable panel with negate toggle
See Also
Interaction System — system overview
Interactable — the component edited by
InteractableEditorInteractionTable — the data structure rendered by
InteractionTableDrawer
Last updated