Hey guys,
I thought this would work but it doesn’t, can anyone explain why?
class Test extends pc.createScript('test') {
initialize() {
console.log('Yo it works');
}
}
Hey guys,
I thought this would work but it doesn’t, can anyone explain why?
class Test extends pc.createScript('test') {
initialize() {
console.log('Yo it works');
}
}
You fool! Of course it doesn’t work, But here is something that does: I've finally figured out how to use ES6 classes with PlayCanvas