Small World Engine API Reference - v0.78.00
    Preparing search index...

    Interface InspectorField

    Definition of a single configurable field surfaced to a property-editing UI (Gadget Inspector today, Maker later -- see docs/adr/0010-maker-editor-architecture.md). Declared per-class as a static readonly inspector map, keyed by an arbitrary field id.

    interface InspectorField {
        label?: string;
        max?: number;
        min?: number;
        options?: Record<string, string | number> | string[];
        path?: string;
        row?: string;
        step?: number;
        type:
            | "string"
            | "number"
            | "boolean"
            | "vec2"
            | "vec3"
            | "color"
            | "choice";
    }
    Index
    label?: string
    max?: number
    min?: number
    options?: Record<string, string | number> | string[]
    path?: string

    Dotted path to the actual value when it isn't a direct own property, e.g. "position.x".

    row?: string

    Optional row identifier to group multiple consecutive fields onto a single horizontal line.

    step?: number
    type: "string" | "number" | "boolean" | "vec2" | "vec3" | "color" | "choice"