A native asset that provides a 3D mesh of the user's face. Import with Editor.Model.AssetManager.createNativeAsset. Learn more in the Face Mesh guide.

interface FaceMesh {
    earGeometryEnabled: boolean;
    expressionMultiplier: number;
    externalMesh: FileMesh;
    externalMeshMapUV: VertexAttribute;
    externalScale: number;
    eyeCornerGeometryEnabled: boolean;
    eyeGeometryEnabled: boolean;
    faceGeometryEnabled: boolean;
    faceIndex: number;
    fileMeta: AssetImportMetadata;
    id: Uuid;
    mouthGeometryEnabled: boolean;
    name: string;
    skullGeometryEnabled: boolean;
    type: string;
    getDirectlyReferencedEntities(): Entity[];
    getOwnedEntities(): Entity[];
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    remapReferences(referenceMapping: object): void;
}

Hierarchy (view full)

Properties

earGeometryEnabled: boolean
expressionMultiplier: number
externalMesh: FileMesh
externalMeshMapUV: VertexAttribute
externalScale: number
eyeCornerGeometryEnabled: boolean
eyeGeometryEnabled: boolean
faceGeometryEnabled: boolean
faceIndex: number
id: Uuid

The unique id of the entity.

mouthGeometryEnabled: boolean
name: string

The name of the asset.

skullGeometryEnabled: boolean
type: string

The entity's type.

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