Method GetFaceMesh
GetFaceMesh(TrackableId, Allocator, ref XRFaceMesh)
Get the mesh data associated with the face with faceId. The faceMesh
is reused if it is the correct size; otherwise, it is disposed and reallocated using allocator.
Declaration
public virtual void GetFaceMesh(TrackableId faceId, Allocator allocator, ref XRFaceMesh faceMesh)
Parameters
| Type | Name | Description |
|---|---|---|
| TrackableId | faceId | The TrackableId for a XRFace. |
| Allocator | allocator | The allocator to use for the returned data if a resize is necessary. Must be |
| XRFaceMesh | faceMesh | The container for the mesh data to either re-use or re-allocate. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Thrown if |
| InvalidOperationException | Thrown if |