Hi guys,
Does Playcanvas app fire any event after all the scripts on the stage were loaded and initialized?
Smth like ‘sceneloaded’?
Can’t find anything like this in API reference.
Hi guys,
Does Playcanvas app fire any event after all the scripts on the stage were loaded and initialized?
Smth like ‘sceneloaded’?
Can’t find anything like this in API reference.
Check out the API reference docs for pc.Application#start.
It sounds like you want:
this.app.on('postinitialize', function () {
console.log("Yay! All scripts have been loaded and initialized.");
});
Source code is here:
Thank you, will!