Interface LabelOptions

interface LabelOptions {
    anchorPoint?: [number, number];
    backgroundColor?: ColorRepresentation;
    backgroundOpacity?: number;
    billboard?: boolean;
    color?: ColorRepresentation;
    labelPool?: LabelPool;
    lineHeight?: number;
    position?: Vector3;
    sizeAttenuation?: boolean;
    text: string;
    transparent?: boolean;
}

Properties

anchorPoint?: [number, number]

锚点

backgroundColor?: ColorRepresentation

背景色

backgroundOpacity?: number

背景透明度

billboard?: boolean

是否为公告板模式

color?: ColorRepresentation

颜色

labelPool?: LabelPool

文本池

lineHeight?: number

高度

position?: Vector3

位置

sizeAttenuation?: boolean

大小是否会受相机影响

text: string

文字内容

transparent?: boolean

背景是否透明