Strata - v1.4.10
    Preparing search index...

    Interface WallButtonProps

    Props for the WallButton component.

    interface WallButtonProps {
        activeColor?: ColorRepresentation;
        color?: ColorRepresentation;
        housingColor?: ColorRepresentation;
        onActivate?: (event: InputEvent) => void;
        onAxisChange?: (axis: InputAxis, worldPosition: Vector3) => void;
        onDeactivate?: (event: InputEvent) => void;
        onPress?: (event: InputEvent) => void;
        onRelease?: (event: InputEvent) => void;
        position?: [number, number, number];
        rotation?: [number, number, number];
        size?: number;
        type?: "toggle" | "momentary";
    }

    Hierarchy (View Summary)

    Index

    Properties

    activeColor?: ColorRepresentation

    Pressed/active button color. Default: '#33cc33'.

    color?: ColorRepresentation

    Neutral button color. Default: '#cc3333'.

    housingColor?: ColorRepresentation

    Color of the button housing. Default: '#444444'.

    onActivate?: (event: InputEvent) => void

    Fired when the control is first pressed or activated.

    onAxisChange?: (axis: InputAxis, worldPosition: Vector3) => void

    Fired continuously as axis values change.

    onDeactivate?: (event: InputEvent) => void

    Fired when the control is released or deactivated.

    onPress?: (event: InputEvent) => void

    Fired on initial interaction start.

    onRelease?: (event: InputEvent) => void

    Fired when interaction ends.

    position?: [number, number, number]

    World position [x, y, z]. Default: [0, 0, 0].

    rotation?: [number, number, number]

    World rotation [x, y, z] in radians. Default: [0, 0, 0].

    size?: number

    Button scale multiplier. Default: 0.3.

    type?: "toggle" | "momentary"

    Interaction mode. 'toggle' stays pressed until next click. Default: 'momentary'.