Class ARFace
Represents a face detected by an AR device.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Assembly: solution.dll
Syntax
[DisallowMultipleComponent]
[DefaultExecutionOrder(-2147483646)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/api/UnityEngine.XR.ARFoundation.ARFace.html")]
public sealed class ARFace : ARTrackable<XRFace, ARFace>
Remarks
Generated by the ARFaceManager when an AR device detects a face in the environment.
Properties
Name | Description |
---|---|
fixationPoint | The transform representing the point where the eyes are fixated or |
indices | The indices defining the triangles of the face mesh. Check for existence with |
leftEye | The transform of the left eye of the face, or |
nativePtr | Get a native pointer associated with this face. |
normals | The normals representing the face mesh. Check for existence with |
rightEye | The transform of the right eye of the face, or |
uvs | The texture coordinates representing the face mesh. Check for existence with |
vertices | The vertices representing the face mesh. Check for existence with |
Events
Name | Description |
---|---|
updated | Invoked when the face is updated. If face meshes are supported, there will be updated vertices, normals, indices, and uvs. |