Out of nowhere it error occurs when i try to reload my UIManager script. I have tried restarting, reloading chrome, logout/in playcanvas, removed cookies - nothing worked.
I even reverted back the changes i made in the script that i was working on, and still this error happens
all my scripts stopped working (got not registered)
I used ES6 classes extending pc.ScriptType and then registering them
All stopped working with 2.19.3. Only adding the second argument to pc.registerScript with the script name and replacing it on the entity fixed the problem. Not cool though, I got hundreds of scripts.
We had an issue where the Weapon name was used directly, but other scripts use camel case.
so MyWeaponClass would internally register under MyWeaponClass, but now it is unified to myWeaponClass.
But agree this is not ideal, and I’m changing the script registration to register under both MyWeaponClass and myWeaponClass names. Fix incoming.