GetLocationMeshChunksByVpsMapAssetIdAsync
Declaration
public IAsyncEnumerable<GameObject> GetLocationMeshChunksByVpsMapAssetIdAsync(string vpsMapAssetId, double latitude, double longitude, bool getTexture = false, uint maxChunks = 0, uint maxSizeKb = 0, uint maxDecodedSizeKb = DefaultMaxDecodedSizeKb, bool addCollider = false, bool cancelOnDisable = true)
Summary
Remarks
Each chunk GameObject's local space is the asset's origin space, in Unity axes and meters:
the chunk's own transform (chunk-local vertices to the asset's origin) and the conversion
from NSDK axes are applied on its children. Parent the chunk under the
ARVps2Asset of the same asset (or place it at
Pose) to align it
with the AR scene. The mesh carries no geographic data; see MeshGeoReference
for its georeference.
Parameters
| Name | Type | Summary |
|---|---|---|
| vpsMapAssetId | string | - |
| latitude | double | - |
| longitude | double | - |
| getTexture | bool | - |
| maxChunks | uint | - |
| maxSizeKb | uint | - |
| maxDecodedSizeKb | uint | - |
| addCollider | bool | - |
| cancelOnDisable | bool | - |
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.
The download stops once the chunks delivered so far occupy
maxDecodedSizeKb kilobytes decoded: vertices, UVs, indices and
per-vertex colours at 4 bytes each, plus texture bytes as received. Pass 0 for no
budget.