How do I get an array of all entities in the scene with a specific script?
In my world it would be something like:
this.pNodes = [];
this.pNodes =this.app.root.findComponents("script").pNodeScript;
…but apparently this is nonsense. So how can I do it?
P.S I know I could get an array off ALL the objects in the scene with scripts and then filter through each of them but that seem very drawn out.