[SOLVED] All scripts initialized event

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:

1 Like

Thank you, will!