Struct XRFaceMesh
  
Container for mesh data associated with an XRFace. Not all implementations
support all data. Check for existence with NativeArray's IsCreated property.
 
Syntax
public struct XRFaceMesh : IEquatable<XRFaceMesh>, IDisposable
 
Properties
  
indices
The triangle indices of the mesh. There are three times as many indices as triangles.
 
Declaration
public NativeArray<int> indices { get; }
 
Property Value
| Type | 
Description | 
| NativeArray<Int32> | 
 | 
normals
The normals in the mesh. This is a parallel array to
vertices and uvs.
 
Declaration
public NativeArray<Vector3> normals { get; }
 
Property Value
| Type | 
Description | 
| NativeArray<Vector3> | 
 | 
uvs
The texture coordinates for the mesh. This is a parallel
array to vertices and normals.
 
Declaration
public NativeArray<Vector2> uvs { get; }
 
Property Value
| Type | 
Description | 
| NativeArray<Vector2> | 
 | 
vertices
The vertices in the mesh. This is a parallel array to
normals and uvs.
 
Declaration
public NativeArray<Vector3> vertices { get; }
 
Property Value
| Type | 
Description | 
| NativeArray<Vector3> | 
 | 
Methods
  
Dispose()
Declaration
Equals(Object)
Declaration
public override bool Equals(object obj)
 
Parameters
| Type | 
Name | 
Description | 
| Object | 
obj | 
 | 
Returns
Overrides
Equals(XRFaceMesh)
Declaration
public bool Equals(XRFaceMesh other)
 
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
 
Returns
Overrides
Resize(Int32, Int32, XRFaceMesh.Attributes, Allocator)
Resize the NativeArrays held by this struct. This method will deallocate
the NativeArrays if they are not needed or if they are not the correct size.
If they are already the correct size, this method does not mutate those NativeArrays.
This facilitate memory reuse when the number of vertices or triangles in the face does
not change frequently.
 
Declaration
public void Resize(int vertexCount, int triangleCount, XRFaceMesh.Attributes attributes, Allocator allocator)
 
Parameters
| Type | 
Name | 
Description | 
| Int32 | 
vertexCount | 
The number of vertices in the mesh. 
 | 
| Int32 | 
triangleCount | 
The number of triangles in the mesh. 
 | 
| XRFaceMesh.Attributes | 
attributes | 
Optional mesh attributes. This affects whether normals
and uvs will be (re)allocated or disposed. 
 | 
| Allocator | 
allocator | 
If a reallocation is required, this allocator will be used. 
 | 
ToString()
Declaration
public override string ToString()
 
Returns
Overrides
Operators
  
Equality(XRFaceMesh, XRFaceMesh)
Declaration
public static bool operator ==(XRFaceMesh lhs, XRFaceMesh rhs)
 
Parameters
Returns
Inequality(XRFaceMesh, XRFaceMesh)
Declaration
public static bool operator !=(XRFaceMesh lhs, XRFaceMesh rhs)
 
Parameters
Returns