Okay. So I got TamperMonkey installed and I cut/paste the example script found at Editor API | PlayCanvas Developer Site but I just get a bunch of errors regarding: editor is not defined, pc is not defined etc
Any idea how Im supposed to format the example script correctly to work with TamperMonkey?
Thanks
Haven’t touched PlayCanvas for a few years now so chances are something has changed with the Editor in how it loads (perhaps editor and pc aren’t available yet when the user script loads) and/or Chrome is limiting access in some way in the last few updates to the user manifest
Those errors are expected in the editor because they are global variables added by the PlayCanvas Editor. I would ignore them unless they are really undefined when you run the script
It also looks like Tampermonkey has the same issue as Violent Monkey with Chrome blocking user scripts FAQ | Tampermonkey
Actually, all you may need to do is enable Developer mode in the top right in chrome://extensions/