接口 IVector3PropertyItemOptions实验性

Optional properties for Vector3 property item

interface IVector3PropertyItemOptions {
    enable?: boolean;
    hiddenLabel?: boolean;
    isInteger?: boolean;
    max?: Partial<Vector3>;
    min?: Partial<Vector3>;
    onChange?: ((newValue: Vector3, oldValue: Vector3) => void);
    title?: LocalizedString;
    tooltip?: LocalizedString;
    visible?: boolean;
}

层级 (查看完整内容)

属性

enable?: boolean

Initial enabled state of property item. If undefined, it will default to true.

hiddenLabel?: boolean

If true label text will be hidden. It will be visible by default.

isInteger?: boolean

If we should treat the Vector3 properties as integer values. By default is false.

max?: Partial<Vector3>

The min possible limits. If undefined, Number.MAX_SAFE_INTEGER will be used.

min?: Partial<Vector3>

The min possible limits. If undefined, Number.MIN_SAFE_INTEGER will be used.

onChange?: ((newValue: Vector3, oldValue: Vector3) => void)

This callback is called when UI control is changed.

Localized title of the property item

tooltip?: LocalizedString

Tooltip description of the property item

visible?: boolean

Initial visibility state of property item. If undefined, it will default to true.