PlayCanvas Editor Feedback

Thanks :smile:!

Quite a lot of my project broke with the update - I notice that the method I used to initialize early Javascript functions no longer works. Would be really good to be able to get either a way of running code on startup without the need to create a “script” per se or to be able to specify files to be loaded before any of the other scripts are executed.

For instance my pc.script.create(‘xxx’, function(uuu) {}) now runs before all of my JS is loaded. I’ve got a workaround - but I have a function I would prefer to execute inside that script around my script constructor to create a state machine. This no longer works so I’ve bodged it together by screwing with proto but ugly hack.

Before it looked like var MyScript = pc.createStateMachine(function MyScriptConstructor(entity) {});

But that no longer works as the pc.extend isn’t running before the call back to execute the pc.script.create.