The same entity as in Lens Scripting.

"Lens Scripting".Built-In.Text.

interface Text {
    advancedLayout: TextAdvancedLayout;
    backgroundSettings: BackgroundSettings;
    capitalizationOverride: CapitalizationOverride;
    depthTest: boolean;
    dropshadowSettings: DropshadowSettings;
    editable: boolean;
    enabled: boolean;
    font: Font;
    horizontalAlignment: Horizontal;
    horizontalOverflow: HorizontalOverflow;
    id: Uuid;
    letterSpacing: number;
    lineSpacing: number;
    meshShadowMode: MeshShadowMode;
    name: string;
    outlineSettings: OutlineSettings;
    renderOrder: number;
    sceneObject: SceneObject;
    shadowColor: vec4;
    shadowDensity: number;
    showEditingPreview: boolean;
    size: number;
    sizeToFit: boolean;
    stretchMode: StretchMode;
    text: string;
    textFill: TextFill;
    touchHandler: InteractionComponent;
    twoSided: boolean;
    type: string;
    verticalAlignment: Vertical;
    verticalOverflow: VerticalOverflow;
    worldSpaceRect: Editor.Rect;
    getDirectlyReferencedEntities(): Entity[];
    getOwnedEntities(): Entity[];
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    remapReferences(referenceMapping: object): void;
}

Hierarchy (view full)

Properties

advancedLayout: TextAdvancedLayout
backgroundSettings: BackgroundSettings
capitalizationOverride: CapitalizationOverride
depthTest: boolean
dropshadowSettings: DropshadowSettings
editable: boolean
enabled: boolean
font: Font
horizontalAlignment: Horizontal
horizontalOverflow: HorizontalOverflow
id: Uuid

The unique id of the entity.

letterSpacing: number
lineSpacing: number
meshShadowMode: MeshShadowMode
name: string
outlineSettings: OutlineSettings
renderOrder: number
sceneObject: SceneObject
shadowColor: vec4
shadowDensity: number
showEditingPreview: boolean
size: number
sizeToFit: boolean
stretchMode: StretchMode
text: string
textFill: TextFill
touchHandler: InteractionComponent
twoSided: boolean
type: string

The entity's type.

verticalAlignment: Vertical
verticalOverflow: VerticalOverflow
worldSpaceRect: Editor.Rect

Methods

  • Beta

    Swap this entity for another one based on a JSON of the current entity id and the target entity id.

    Parameters

    • referenceMapping: object

    Returns void