AR Mesh Manager component
Some platforms provide a meshing feature that generates a mesh based on scanned real-world geometry. The mesh manager enables and configures this functionality on supported platforms.
Requirements
See documentation for your platform-specific package to confirm whether meshing is supported.
Additionally, not all devices provide support for all the features in the mesh manager. Some properties in the mesh manager are ignored on certain platforms. The platform-specific package documentation details which meshing features are available for each platform.
Using meshing in a scene
To use meshing with AR Foundation, add the ARMesh
AR Mesh Manager component
Mesh Prefab
You need to set the mesh
If you want to render the scanned meshes, you need to add a Mesh
If you want to include virtual content that interacts physically with the real-world scanned meshes, you must add a Mesh
This image demonstrates a mesh Prefab configured with the required Mesh
Density
The density property, in the range 0 to 1, specifies the amount of tessellation to perform on the generated mesh. A value of 0 results in the least amount tessellation, whereas a value of 1 produces the most tessellation.
Not all platforms support this feature.
Normals
When the device is constructing the mesh geometry, it might calculate the vertex normals for the mesh. If you don't need the mesh vertex normals, disable normals to save on memory and CPU time.
Not all platforms support this feature.
Tangents
When the device is constructing the mesh geometry, it might calculate the vertex tangents for the mesh. If you don't need the mesh vertex tangents, disable tangents to save on memory and CPU time.
Not all platforms support this feature.
Texture coordinates
When the device is constructing the mesh geometry, it might calculate the vertex texture coordinates for the mesh. If you don't need the mesh vertex texture coordinates, disable texture
Not all platforms support this feature.
Colors
When the device is constructing the mesh geometry, it might calculate the vertex colors for the mesh. If you don't need the mesh vertex colors, disable colors to save on memory and CPU time.
Not all platforms support this feature.
Concurrent queue size
To avoid blocking the main thread, the tasks of converting the device mesh into a Unity mesh and creating the physics collision mesh (if the mesh