Skip to main content
←API Reference ←com.nianticspatial.nsdk.mesh ←MeshDownloaderSession

configure


Declaration​

fun configure(config: MeshDownloaderConfig)

Summary​

Configures the on-disk mesh cache.


Downloaded geometry and textures are cached per graph node, so revisiting a location reads
from disk instead of the CDN, and an interrupted download resumes where it stopped rather
than starting over. Cached content never goes stale: a re-run of the mapping pipeline
publishes new node ids, so an id always names the same geometry.


Caching is off until this is called. It may be called again later. A changed budget applies
at once, to downloads already in progress too. Disabling only affects downloads started
afterward; one already in progress keeps the cache it started with.

See also​

  • MeshDownloaderConfig

Parameters​

NameTypeSummary
configMeshDownloaderConfig
-