InteractionInputDrawer

Minimal Odin Inspector drawer for InteractionInput values. Renders only the inputActionReference child property in a horizontal layout with left padding.

Definition

Namespace: Paragon.Townskeep.InteractionSystem.Editor Assembly: Townskeep.Editor.dll

[DrawerPriority(0.0, 0.0, 3000.0)]
public class InteractionInputDrawer : OdinValueDrawer<InteractionInput>

Inheritance: OdinValueDrawer<InteractionInput>InteractionInputDrawer

Remarks

This drawer simplifies the Inspector representation of InteractionInput by hiding all fields except the inputActionReference (Unity InputActionReference). This provides a clean, single-line view where each interaction input displays as its label and an InputActionReference object field.

The drawer is typically not seen standalone — it is rendered by InteractionInputTableDrawer for each input entry in the table, with the label set to the input's Name property.

Quick Lookup

Goal
How

Access the drawn input

ValueEntry.SmartValue

Access the InputActionReference

Property.Children["inputActionReference"]

Methods

DrawPropertyLayout (override)

Draws the inputActionReference child property with a 5px left margin.

Parameter
Type
Description

label

GUIContent

The property label — passed through to the inputActionReference field

Visual Layout

See Also

Last updated