So, I was trying put the vercel npm ai package and I built the basic example chat app and so I would like to take that chat and put it inside a needle/unity object. I don’t know how to approach this since the chat app comes with its own server.ts file and at the end idk if I could export everything for it to be able to be imported in needle through the unity gui.
I just tried that samples branch and the sveltekit one told me to generate project unlike the svelte one that told me to just install. Once I opened the workspace of the skit one it was like a brand new needle project, no files were on the src folder. I tried the svelte one and there was a bunch of .svelte files inside the src folder
I think the Unity path didnt point to the sveltekit project. The file I sent you has a sample for how to embed the web component. With that you can just set the src attribute <needle-engine src="..." to point to your glb exported from Unity.
I got that sorted out, now what I’m seeing in the sample is that there is another app (my-app) built on top of the needle base project, is that correct?
That’s why it’s still on a branch, it’s not cleaned up as usable sample right now - the my-app project is an independent standalone sveltekit test, you can delete that