I’m well versed in both Unity and Vue but I’m having trouble wrapping my head around putting the two together. My end goal is to produce something similar to the Needle.tools site - is there a guide somewhere for setting up that workflow starting with the default Vite template?
Update: I started over on a fresh project and things are starting to come together. I added the Vue plugin to Vite and moved the tag into App.vue. I’m still not able to get anything from the Needle context like Needle.findObjectOfType(Needle.Camera) but it’s mostly because I’m resisting a full on integration with Unity components.
A big part of my problem is that I’m not well versed in Typescript, so brushing up on my knowledge there is my next step
Scroll Listener: that’s external, just some js to listen on scroll events on the div and invoking a method on some engine component to set the PlayableDirector time (which we used to animate a camera along a spline). A simple example of that is the scrollytelling scene in our samples
Awesome thanks for sharing, will check out that sample. That is what I’m excited about - getting a workflow where all of the DOM stuff is handled through Vue and 3d is Unity timeline
You can just use any vue starter with vite and install our engine package + put the <needle-engine> component in the .vue page that you want it to load in.