A native asset that provides a cropped region of the input texture, calculated based on face position. Import with Editor.Model.AssetManager.createNativeAsset. Learn more in "Lens Scripting".Built-In.FaceCropTextureProvider

interface FaceCropTexture {
    faceCenterMouthWeight: number;
    faceIndex: number;
    fileMeta: AssetImportMetadata;
    id: Uuid;
    inputTexture: Editor.Assets.Texture;
    name: string;
    scale: vec2;
    type: string;
    getDirectlyReferencedEntities(): Entity[];
    getOwnedEntities(): Entity[];
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    remapReferences(referenceMapping: object): void;
}

Hierarchy (view full)

Properties

faceCenterMouthWeight: number
faceIndex: number
id: Uuid

The unique id of the entity.

inputTexture: Editor.Assets.Texture
name: string

The name of the asset.

scale: vec2
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