XRMeshSubsystemExtension
Extensions to AR Foundation's XRMeshSubsystem
class.
Summary
Public static functions |
|
---|---|
GetMeshSemantics(this XRMeshSubsystem subsystem, MeshId meshId)
|
Gets the vertex semantics of the given mesh id.
|
GetSceneMeshTrackingState(this XRMeshSubsystem subsystem)
|
Get the current tracking state of the scene meshing.
|
IsSceneMeshId(this XRMeshSubsystem subsystem, MeshId meshId)
|
bool
Checks if the given mesh id is a scene mesh id.
|
Public static functions
GetMeshSemantics
XRMeshSemantics[] GetMeshSemantics( this XRMeshSubsystem subsystem, MeshId meshId )
Gets the vertex semantics of the given mesh id.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Returns |
The vertex semantics of the mesh id as an array of
XRMeshSemantics enums. If the mesh id is invalid or if the semantics could not be retrieved, the function will return null. |
GetSceneMeshTrackingState
XRSceneMeshTrackingState GetSceneMeshTrackingState( this XRMeshSubsystem subsystem )
Get the current tracking state of the scene meshing.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The scene mesh tracking state as a
XRSceneMeshTrackingState enums. |
IsSceneMeshId
bool IsSceneMeshId( this XRMeshSubsystem subsystem, MeshId meshId )
Checks if the given mesh id is a scene mesh id.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Returns |
True if the mesh id is a scene mesh id, false otherwise.
|