The same entity as in Lens Scripting.

interface FaceMaskVisual {
    drawMouth: boolean;
    enabled: boolean;
    enabledLipsFix: boolean;
    enabledTeethFix: boolean;
    faceIndex: number;
    id: Uuid;
    mainMaterial: Editor.Assets.Material;
    maskCoordinates: vec2[];
    maskOnMouthClosed: Editor.Assets.Texture;
    name: string;
    originalFaceIndex: number;
    renderOrder: number;
    sceneObject: Editor.Model.SceneObject;
    teethFixAlpha: number;
    textureCoordinates: vec2[];
    type: string;
    useOriginalTexCoords: boolean;
    useTextureFacePosition: boolean;
    getDirectlyReferencedEntities(): Entity[];
    getOwnedEntities(): Entity[];
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    remapReferences(referenceMapping: object): void;
}

Hierarchy (view full)

Properties

drawMouth: boolean
enabled: boolean
enabledLipsFix: boolean
enabledTeethFix: boolean
faceIndex: number
id: Uuid

The unique id of the entity.

mainMaterial: Editor.Assets.Material
maskCoordinates: vec2[]
maskOnMouthClosed: Editor.Assets.Texture
name: string
originalFaceIndex: number
renderOrder: number
sceneObject: Editor.Model.SceneObject
teethFixAlpha: number
textureCoordinates: vec2[]
type: string

The entity's type.

useOriginalTexCoords: boolean
useTextureFacePosition: boolean

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