The Android XR SDK is now available in Developer Preview. We want your feedback! Visit our
support page to reach out.
Stay organized with collections
Save and categorize content based on your preferences.
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 |
subsystem
|
The XRMeshSubsystem to use.
|
meshId
|
The mesh id to get the vertex semantics of.
|
|
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 |
subsystem
|
The XRMeshSubsystem to use.
|
|
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 |
subsystem
|
The XRMeshSubsystem to use.
|
meshId
|
The mesh id to check.
|
|
Returns
|
True if the mesh id is a scene mesh id, false otherwise.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-06-26 UTC.
[null,null,["Last updated 2025-06-26 UTC."],[],[],null,["# XRMeshSubsystemExtension Class Reference\n\nXRMeshSubsystemExtension\n========================\n\nExtensions to AR Foundation's `XRMeshSubsystem` class.\n\nSummary\n-------\n\n| ### Public static functions ||\n|-------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GetMeshSemantics](#getmeshsemantics)`(this XRMeshSubsystem subsystem, MeshId meshId)` | [XRMeshSemantics](/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrmeshsemantics)`[]` Gets the vertex semantics of the given mesh id. |\n| [GetSceneMeshTrackingState](#getscenemeshtrackingstate)`(this XRMeshSubsystem subsystem)` | [XRSceneMeshTrackingState](/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrscenemeshtrackingstate) Get the current tracking state of the scene meshing. |\n| [IsSceneMeshId](#isscenemeshid)`(this XRMeshSubsystem subsystem, MeshId meshId)` | `bool` Checks if the given mesh id is a scene mesh id. |\n\nPublic static functions\n-----------------------\n\n### GetMeshSemantics\n\n```c#\nXRMeshSemantics[] GetMeshSemantics(\n this XRMeshSubsystem subsystem,\n MeshId meshId\n)\n``` \nGets the vertex semantics of the given mesh id.\n\n\n| Details ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |-------------|---------------------------------------------| | `subsystem` | The XRMeshSubsystem to use. | | `meshId` | The mesh id to get the vertex semantics of. | |\n| **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. |\n\n### GetSceneMeshTrackingState\n\n```c#\nXRSceneMeshTrackingState GetSceneMeshTrackingState(\n this XRMeshSubsystem subsystem\n)\n``` \nGet the current tracking state of the scene meshing.\n\n\n| Details ||\n|-------------|---------------------------------------------------------------------------------------------|\n| Parameters | |-------------|-----------------------------| | `subsystem` | The XRMeshSubsystem to use. | |\n| **Returns** | The scene mesh tracking state as a `XRSceneMeshTrackingState`enums. |\n\n### IsSceneMeshId\n\n```c#\nbool IsSceneMeshId(\n this XRMeshSubsystem subsystem,\n MeshId meshId\n)\n``` \nChecks if the given mesh id is a scene mesh id.\n\n\n| Details ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |-------------|-----------------------------| | `subsystem` | The XRMeshSubsystem to use. | | `meshId` | The mesh id to check. | |\n| **Returns** | True if the mesh id is a scene mesh id, false otherwise. |"]]