Like, for example I’m doing a script for an npc and I’m doing an onTriggerEnter and I want to render text when the player aproaches. Is there any way to do that with something like a component for vue for example? like onTriggerEnter(){ VueComponent }, where in VueComponent I then would have my html and css ?
Sure you can e.g. raise events on your components and then receive those events for example in vue to update vue component state. There’s a small sample (without a framework) that does a little bit of that (the Javascript Interop folder in the samples)
Your vue component has a script part. In that script part you can import types from needle engine and query needle engine types with e.g. getComponentInChildren or findObjectOfType. Just like in the sample i mentioned above