Hi everyone!
We’re trying the new scripting system you’ve implemented, and I’m having an issue using jQuery and communicating with the project.
In other projects, with the legacy scripting system, I could do:
`jQuery(document).on("generarMaterial",function(event){
//WHATEVER YOU WANTED TO DO, AND FINALLY...
console.log(this.entity); // to check you were in the right context
}).bind(this);`
THis worked well in the previous version, now, it always gives back “undefined”.
Not sure what am I doing wrong to be honest.
Thanks for reading