Hi I’m coding BJ with Ionic/Angular.
Sometimes, the canvas element would be released on iOS, BJ engine is inited like, the constructor takes html element or a WebGL context,
this._engine = new Engine(canvas);
this._scene = new Scene(this._engine);
So how to init the engine without a canvas element, or when the canvas element gets disappeared (released by angular), I don’t need to load scene assets again?
then when the canvas will be available how can I attach the canvas to the scene and engine?
Also in such case, how to load assets?
I saw someone pointed out the AssetContainer, but
var container = new BABYLON.AssetContainer(scene);
it still needs scene !