Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.Subsystems

LocationMeshManager

↳ extends UnityEngine.MonoBehaviour
MonoBehaviour that manages the downloading and rendering of location meshes

Declaration​

public class LocationMeshManager : MonoBehaviour

Properties​

NameTypeSummary
TexturedMeshMaterialMaterial
Get or set the material to use for textured meshes
A custom material can be provided to render the meshes with a custom shader
VertexColorMaterialMaterial
Get or set the material to use for vertex colored meshes
A custom material can be provided to render the meshes with a custom shader

Methods​

NameTypeSummary
GetLocationMeshChunksByVpsMapAssetIdAsyncIAsyncEnumerable<GameObject>
Stream mesh chunks for a VPS map asset, yielding each chunk as a GameObject as it completes.
Resolves the VPS map asset to its Mesh sibling in the same asset group. Chunks arrive
one at a time, closest-first based on the provided GPS position.
Iterate with await foreach to process each chunk as it arrives.
async GetLocationMeshForPayloadAsyncTask<GameObject>
Get the mesh for an anchor payload