Sending events from framework to needle

Is there any example on how you can send an event from svelte for example to Needle?

For example, I want to design with svelte and so I would like to then pop up that ui I designed on svelte, onclick on a needle component (a specific gameobject for example)

Original Post on Discord

by user 483253293477265409

cc @herbst🌵

@AFR did you look at the Svelte project sample? It shows both directions, communication from svelte into the scene and vice versa

This one? https://github.com/needle-tools/needle-engine-samples/tree/samples/sveltekit-sample

by user 483253293477265409

That might be interesting too but not quite completed. On main and dev there’s a “Svelte Project Sample” though to get you started

thanks, I’ll check it out :))

by user 483253293477265409