Hi guys,I am facing a problem when I try to register scripts by pc.registerScript().I try to refer an entity which I set in editor,but the result is not correct,here is my code:
This is interesting. Looks like by adding a property, it stops whatever logic we have in the engine that converts the GUID (which is what is stored in the scene data) into a the actual Entity object
Because the property box is already defined in RegisterScript1, it doesn’t create the hook ups and event listeners for the attribute to convert it from a GUID to Entity.
At the moment, we don’t have an recommended practises for using ES6 classes but something I’m thinking about.