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

CreateMeshChunk


Declaration​

public GameObject CreateMeshChunk(MeshChunkData data, bool addCollider = false)

Summary​

Build a chunk GameObject from geometry yielded by
GetLocationMeshChunkDataByVpsMapAssetIdAsync, rendered with this manager's
materials. The chunk is the same as one yielded by
GetLocationMeshChunksByVpsMapAssetIdAsync.

Remarks​

The chunk is returned inactive; activate it once it is parented. Each call creates new
Unity Mesh, Texture and Material assets owned by the chunk, and destroying the chunk
frees them. data is left intact.

Parameters​

NameTypeSummary
dataMeshChunkData
-
addColliderbool
-