The same entity as in Lens Scripting.

interface FaceStretchVisual {
    enabled: boolean;
    faceIndex: number;
    id: Uuid;
    name: string;
    renderOrder: number;
    sceneObject: Editor.Model.SceneObject;
    type: string;
    addFeature(name: string): void;
    clearFeatures(): void;
    getDirectlyReferencedEntities(): Entity[];
    getFeatureNames(): string[];
    getFeaturePoints(name: string): StretchPoint[];
    getFeatureWeight(name: string): number;
    getOwnedEntities(): Entity[];
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    remapReferences(referenceMapping: object): void;
    removeFeature(name: string): void;
    setFeatureWeight(name: string, weight: number): void;
    updateFeaturePoints(name: string, points: StretchPoint[]): void;
}

Hierarchy (view full)

Properties

enabled: boolean
faceIndex: number
id: Uuid

The unique id of the entity.

name: string
renderOrder: number
sceneObject: Editor.Model.SceneObject
type: string

The entity's type.

Methods

  • Beta

    Parameters

    • name: string

    Returns void

  • Beta

    Returns void

  • Beta

    Returns string[]

  • Beta

    Parameters

    • name: string

    Returns number

  • 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

  • Beta

    Parameters

    • name: string

    Returns void

  • Beta

    Parameters

    • name: string
    • weight: number

    Returns void

  • Beta

    Parameters

    Returns void