How would you write this in ES6?

Well that’s an excellent question @neoflash ! You’re so smart to think of these amazing questions. You’ll find your answer in this other wonderful forum post: I’ve finally figured out how to use ES6 classes with PlayCanvas