Can I use my own Javascript classes when using the editor?

I did read in this forum that the editor does not support ES6. So can I write my own Javascript classes and use it in a game that also uses the editor?

Hi @simmania,

You can use any JS valid code with PlayCanvas. For your own classes you can either bundle them as a plain .js script or if you use ES6 modules, check here on how to load them:

ES6 classes are supported. Imports/Exports are not unfortunately.