Engine API Reference - v2.12.3
    Preparing search index...

    Interface ShapeArgs

    interface ShapeArgs {
        axis?: string;
        cull?: number;
        defaultColor?: Color;
        depth?: number;
        disabled?: boolean;
        disabledColor?: Color;
        hoverColor?: Color;
        layers?: number[];
        position?: Vec3;
        rotation?: Vec3;
        scale?: Vec3;
        visible?: boolean;
    }
    Index

    Properties

    axis?: string

    The axis of the shape (e.g., 'x', 'y', 'z').

    cull?: number

    The culling mode of the shape.

    defaultColor?: Color

    The default color of the shape.

    depth?: number

    The depth of the shape. -1 = interpolated depth.

    disabled?: boolean

    Whether the shape is disabled.

    disabledColor?: Color

    The disabled color of the shape.

    hoverColor?: Color

    The hover color of the shape.

    layers?: number[]

    The layers the shape belongs to.

    position?: Vec3

    The position of the shape.

    rotation?: Vec3

    The rotation of the shape.

    scale?: Vec3

    The scale of the shape.

    visible?: boolean

    Whether the shape is visible.