No repro, just a question. Its late here and it might be a dumb question cos I’m fatigued.
I have (as example) a .babylon
file with a cube, sphere and a torus. When scene is created, the sphere is imported in. Upon user demand, say, on button click, I want to import the cube/torus into the scene at specific coordinates. The usual methods of importmesh/assetmanager works when the number of assets in the .babylon
file is low as the round trip from server fetch is pretty fast.
But when my .babylon file has many assets and the file size is larger, ie, approx 50mb, the server fetch is slow. In this case, I want to preload the .babylon
file preferably as a var
or easily referenced asset client-side. What are the usual methods that can allow me to do so ? Can I store the file in client-side indexdb ? or access it from cache ?