The same entity as in Lens Scripting.

"Lens Scripting".Built-In.LookAtComponent.

interface LookAtComponent {
    aimVectors: AimVectors;
    enabled: boolean;
    id: Uuid;
    lookAtMode: LookAtMode;
    name: string;
    offsetRotation: quat;
    sceneObject: SceneObject;
    target: SceneObject;
    type: string;
    worldUpVector: WorldUpVector;
    getDirectlyReferencedEntities(): Entity[];
    getOwnedEntities(): Entity[];
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    remapReferences(referenceMapping: object): void;
}

Hierarchy (view full)

Properties

aimVectors: AimVectors
enabled: boolean
id: Uuid

The unique id of the entity.

lookAtMode: LookAtMode
name: string
offsetRotation: quat
sceneObject: SceneObject
target: SceneObject
type: string

The entity's type.

worldUpVector: WorldUpVector

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