The same entity as in Lens Scripting.

interface BaseMeshVisual {
    enabled: boolean;
    horizontalAlignment: Horizontal;
    id: Uuid;
    meshShadowMode: Editor.Components.MeshShadowMode;
    name: string;
    renderOrder: number;
    sceneObject: Editor.Model.SceneObject;
    shadowColor: vec4;
    shadowDensity: number;
    stretchMode: Editor.Components.StretchMode;
    type: string;
    verticalAlignment: Vertical;
    getDirectlyReferencedEntities(): Entity[];
    getOwnedEntities(): Entity[];
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    remapReferences(referenceMapping: object): void;
}

Hierarchy (view full)

Properties

enabled: boolean
horizontalAlignment: Horizontal
id: Uuid

The unique id of the entity.

name: string
renderOrder: number
sceneObject: Editor.Model.SceneObject
shadowColor: vec4
shadowDensity: number
type: string

The entity's type.

verticalAlignment: Vertical

Methods

  • Beta

    Parameters

    • type: string

    Returns boolean

  • 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