The same entity as in Lens Scripting.

"Lens Scripting".Built-In.RenderMeshVisual.

interface RenderMeshVisual {
    blendNormals: boolean;
    blendShapesEnabled: boolean;
    enabled: boolean;
    horizontalAlignment: Horizontal;
    id: Uuid;
    mainMaterial: Material;
    materials: Material[];
    mesh: RenderMesh;
    meshShadowMode: MeshShadowMode;
    name: string;
    renderOrder: number;
    sceneObject: SceneObject;
    shadowColor: vec4;
    shadowDensity: number;
    stretchMode: StretchMode;
    type: string;
    verticalAlignment: Vertical;
    addMaterialAt(value: Material, pos?: number): void;
    clearMaterials(): void;
    getDirectlyReferencedEntities(): Entity[];
    getMaterialAt(pos: number): Material;
    getMaterialsCount(): number;
    getOwnedEntities(): Entity[];
    getTypeName(): string;
    indexOfMaterial(value: 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: Material): void;
}

Hierarchy (view full)

Properties

blendNormals: boolean
blendShapesEnabled: boolean
enabled: boolean
horizontalAlignment: Horizontal
id: Uuid

The unique id of the entity.

mainMaterial: Material
materials: Material[]
meshShadowMode: MeshShadowMode
name: string
renderOrder: number
sceneObject: SceneObject
shadowColor: vec4
shadowDensity: number
stretchMode: StretchMode
type: string

The entity's type.

verticalAlignment: Vertical

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