The same entity as in Lens Scripting.

interface Text3D {
    advancedLayout: TextAdvancedLayout;
    capitalizationOverride: CapitalizationOverride;
    editable: boolean;
    enabled: boolean;
    extrudeDirection: ExtrudeDirection;
    extrusionDepth: number;
    font: Editor.Assets.Font;
    horizontalAlignment: Horizontal;
    horizontalOverflow: Editor.Components.HorizontalOverflow;
    id: Uuid;
    letterSpacing: number;
    lineSpacing: number;
    mainMaterial: Editor.Assets.Material;
    materials: Editor.Assets.Material[];
    meshShadowMode: Editor.Components.MeshShadowMode;
    name: string;
    renderOrder: number;
    sceneObject: Editor.Model.SceneObject;
    shadowColor: vec4;
    shadowDensity: number;
    showEditingPreview: boolean;
    size: number;
    sizeToFit: boolean;
    stretchMode: Editor.Components.StretchMode;
    text: string;
    touchHandler: Editor.Components.InteractionComponent;
    type: string;
    verticalAlignment: Vertical;
    verticalOverflow: Editor.Components.VerticalOverflow;
    worldSpaceRect: Editor.Rect;
    addMaterialAt(value: Editor.Assets.Material, pos?: number): void;
    clearMaterials(): void;
    getDirectlyReferencedEntities(): Entity[];
    getMaterialAt(pos: number): Editor.Assets.Material;
    getMaterialsCount(): number;
    getOwnedEntities(): Entity[];
    getTypeName(): string;
    indexOfMaterial(value: Editor.Assets.Material): number;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    moveMaterial(origin: number, destination: number): void;
    remapReferences(referenceMapping: object): void;
    removeMaterialAt(pos: number): void;
    setMaterialAt(pos: number, value: Editor.Assets.Material): void;
}

Hierarchy (view full)

Properties

advancedLayout: TextAdvancedLayout
capitalizationOverride: CapitalizationOverride
editable: boolean
enabled: boolean
extrudeDirection: ExtrudeDirection
extrusionDepth: number
horizontalAlignment: Horizontal
id: Uuid

The unique id of the entity.

letterSpacing: number
lineSpacing: number
mainMaterial: Editor.Assets.Material
materials: Editor.Assets.Material[]
name: string
renderOrder: number
sceneObject: Editor.Model.SceneObject
shadowColor: vec4
shadowDensity: number
showEditingPreview: boolean
size: number
sizeToFit: boolean
text: string
type: string

The entity's type.

verticalAlignment: Vertical
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