XRMeshSubsystemExtension

Extensions to AR Foundation's XRMeshSubsystem class.

Summary

Public static functions

GetMeshSemantics(MeshId meshId)
Gets the vertex semantics of the given mesh id.
IsSceneMeshId(MeshId meshId)
bool
Checks if the given mesh id is a scene mesh id.

Public static functions

GetMeshSemantics

XRMeshSemantics[] GetMeshSemantics(
  MeshId meshId
)

Gets the vertex semantics of the given mesh id.

Details
Parameters
meshId
The mesh id to get the vertex semantics of.
Returns
The vertex semantics of the mesh id as an array of XRMeshSemanticsenums. If the mesh id is invalid or if the semantics could not be retrieved, the function will return null.

IsSceneMeshId

bool IsSceneMeshId(
  MeshId meshId
)

Checks if the given mesh id is a scene mesh id.

Details
Parameters
meshId
The mesh id to check.
Returns
True if the mesh id is a scene mesh id, false otherwise.