FaceTrackingScope
ClassThe face that a tracker should use.
- Available on all platforms
Since Lens Scripting v309
The face that a tracker should use. Allows you to to apply the same face index to a group of Components.
Index
Properties
Methods
Extends
Properties
faceIndex
faceIndex:
number
The face to track. The first face is 0, the second is 1, and so on.
Since
Lens Scripting Version 309
Default Value
0
name
name:
string
The name of the Asset in Lens Studio.
Default Value
""
Inherited from
parentScope
parentScope:
TextureTrackingScope
The parent context that this Tracking Scope is identifying the face from.
Since
Lens Scripting Version 309
Default Value
null
uniqueIdentifier
readonlyuniqueIdentifier:string
Since
Lens Scripting Version 176
Inherited from
TrackingScope.uniqueIdentifier
Methods
getTypeName()
staticgetTypeName():TypeName<FaceTrackingScope>
Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().
Returns
TypeName<FaceTrackingScope>
Since
Lens Scripting Version 309
Overrides
getTypeName()
getTypeName():
string
Returns the name of this object's type.
Returns
string
Inherited from
isOfType()
isOfType(
type):boolean
Returns true if the object matches or derives from the passed in type.
Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
boolean
Inherited from
isSame()
isSame(
other):boolean
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Parameters
| Parameter | Type |
|---|---|
other | ScriptObject |
Returns
boolean