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

GetLocationMeshChunksByVpsMapAssetIdAsync


Declaration​

public IAsyncEnumerable<GameObject> GetLocationMeshChunksByVpsMapAssetIdAsync(string vpsMapAssetId, double latitude, double longitude, bool getTexture = false, uint maxChunks = 0, uint maxSizeKb = 0, bool addCollider = false, bool cancelOnDisable = true)

Summary​

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.

Parameters​

NameTypeSummary
vpsMapAssetIdstring
-
latitudedouble
-
longitudedouble
-
getTexturebool
-
maxChunksuint
-
maxSizeKbuint
-
addColliderbool
-
cancelOnDisablebool
-