How to load assets runtime


#1

Is it possible to load assets little by little during play? Fbx can be heavy to preload at startup only


#2

FBX: not really
The converted model JSON however, can be loaded at runtime.

There are two ways:

  1. Untick the preload box on the asset and use the asset registry to load it at runtime. (see project examples here: https://developer.playcanvas.com/en/tutorials/?tags=assets and tutorials here: https://developer.playcanvas.com/en/tutorials/using-assets/)
  2. Host the model/textures/etc assets somewhere else and load them at runtime. (see posts here: Load 3D models at run time from a PlayCanvas application)

Option 1 is the easiest out of the two.