Class ARFaceManager
Creates, updates, and removes GameObject
s with ARFace components under the
ARSession
Inheritance
Inherited Members
Namespace: UnityEngine .XR.ARFoundation
Assembly: solution.dll
Syntax
[RequireComponent(typeof(ARSessionOrigin))]
[DisallowMultipleComponent]
[DefaultExecutionOrder(-2147483647)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/api/UnityEngine.XR.ARFoundation.ARFaceManager.html")]
public sealed class ARFaceManager : ARTrackableManager<XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider, XRFace, ARFace>
Remarks
When enabled, this component subscribes to faces
Properties
Name | Description |
---|---|
current |
Get the maximum number of faces to track simultaneously. |
face |
Getter/setter for the Face Prefab. |
game |
The name assigned to each |
maximum |
Get or set the maximum number of faces to track simultaneously. This method is obsolete.
Use current |
requested |
Get or set the requested maximum number of faces to track simultaneously |
supported |
Get the supported number of faces that can be tracked simultaneously. This value might change when the configuration changes. |
Methods
Name | Description |
---|---|
Get |
Get the Prefab that will be instantiated for each ARFace. Can be |
On |
Invoked just after a ARFace has been updated. |
On |
Invoked just before calling |
On |
Invoked when the base class detects trackable changes. |
Try |
Attempts to retrieve an ARFace. |
Events
Name | Description |
---|---|
faces |
Raised for each new ARFace detected in the environment. |