Skip to main content

LookAtComponent.LookAtMode

Enum

Modes used in LookAtComponent.lookAtMode to determine the rotation method being used.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Index

Enumeration Members

Example

// @input Component.LookAtComponent lookAt

script.lookAt.lookAtMode = LookAtComponent.LookAtMode.LookAtPoint;
script.lookAt.target = script.getSceneObject();

Enumeration Members

LookAtDirection

LookAtDirection: number

Rotation is based on the target object's rotation


LookAtPoint

LookAtPoint: number

Rotation is based on the target object's position