Interface CreateVRUITextEntityParameter

建立VR UI標籤參數。

interface CreateVRUITextEntityParameter {
    height: number;
    width: number;
    distance?: 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;
}

Hierarchy

  • WithRequired<VRUITextEntityParameter, "width" | "height">
    • CreateVRUITextEntityParameter

Properties

height: number

? 高(m)。

width: number

寬(m)。

distance?: number

? 距離。

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

? 選取時距離。

Generated using TypeDoc