LookAtComponent.LookAtMode
EnumModes 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.
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