Struct XRFaceMesh
Container for mesh data associated with an XRFace. Not all implementations
support all data. Check for existence with NativeArray
's IsCreated
property.
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public struct XRFaceMesh : IEquatable<XRFaceMesh>, IDisposable
Properties
Name | Description |
---|---|
indices | The triangle indices of the mesh. There are three times as many indices as triangles. |
normals | The normals in the mesh. This is a parallel array to vertices and uvs. |
uvs | The texture coordinates for the mesh. This is a parallel array to vertices and normals. |
vertices | The vertices in the mesh. This is a parallel array to normals and uvs. |
Methods
Name | Description |
---|---|
Dispose() | Disposes of the all four native arrays: vertices, normals, uvs, and indices. Checking for creation before calling Dispose. |
Equals(object) | Tests for equality. |
Equals(XRFaceMesh) | Tests for equality. |
GetHashCode() | Generates a hash suitable for use with containers like |
Resize(int, int, Attributes, Allocator) | Resize the |
ToString() | Generates a string suitable for debugging purposes. |
Operators
Name | Description |
---|---|
operator ==(XRFaceMesh, XRFaceMesh) | Tests for equality. Same as Equals(XRFaceMesh). |
operator !=(XRFaceMesh, XRFaceMesh) | Tests for inequality. Same as |