Interface VRUITextEntityUpdateParameter

VR UI文字圖素更新參數。

interface VRUITextEntityUpdateParameter {
    distance?: number;
    height?: number;
    label?: {
        borderColor?: ov.Color;
        borderSize?: number;
        color?: ov.Color;
        font?: string;
        fontSize?: number;
        text?: string;
    };
    labelSize?: number;
    onClick?: (() => void);
    onHoverDistance?: null | number;
    onSelectDistance?: null | number;
    width?: number;
}

Hierarchy

  • VRUITextEntityParameter
    • VRUITextEntityUpdateParameter

Properties

distance?: number

? 距離。

height?: number

? 高(m)。

label?: {
    borderColor?: ov.Color;
    borderSize?: number;
    color?: ov.Color;
    font?: string;
    fontSize?: number;
    text?: string;
}

標籤參數。

Type declaration

  • Optional borderColor?: ov.Color

    邊界顏色。

  • Optional borderSize?: number

    邊界大小。

  • Optional color?: ov.Color

    顏色。

  • Optional font?: string

    字型。

  • Optional fontSize?: number

    字型大小(px)。

  • Optional text?: string

    文字。

labelSize?: number

標籤大小(m)。

onClick?: (() => void)

Type declaration

    • (): void
    • ? 點擊時觸發事件。

      Returns void

onHoverDistance?: null | number

? 懸停時距離。

onSelectDistance?: null | number

? 選取時距離。

width?: number

寬(m)。

Generated using TypeDoc