Hello friends
I’m trying to use indexdb caching as written in this document.I find that,if there is only one model in the scene,it can be stored correctly:
I can delete the glb file on server side,then the model can still be loaded from the hard disk.
But when the models comes more,things changed:
Only the last model which contains a string of numbers in the uri can be stored in the indexdb!
When page refresh,the other models are still loaded from the web server.
My loading code is:
BABYLON.SceneLoader.ImportMesh("","../TESTMAP2/ASSETS/wrjtiles-mg-tc/", "Tile_+000_+001-19-tc.glb", scene
, function (newMeshes, particleSystems, skeletons) {
console.log("mesh1",newMeshes.length);
var mesh=newMeshes[0];
});
And my Tile_+000_+001-19-tc.glb.manifest is:
{
"version" : 2,
"enableSceneOffline" : true,
"enableTexturesOffline" : true
}
Did I do anything wrong?