Hi, sorry for this basic question.
I develop a simple infinite runner game for web, I would like to gain massive time by programming it in Unity and export it with Needle.
I had my runner mesh with his script, my static camera is correctly set etc
When I desactivate the export, my game works correctly on my game view on Unity.
But when I export my scene with vite, I can see my scene on my localhost:3000 with orbit control and Autorotate.
But I want this export as my Game view with controls, my static game camera etc.
How could I do that ?
Hello @AeistDesmos - we currently dont export C# from Unity. So if you have written your Game in Unity you would have to re-implement the logic in Typescript.
Ok thanks, I need to create a typescript element, connect it with the unity project to generate the cs and work on cs and typescript in same time I see.
About the camera, how could I manage them to disable the autorotate, choose my static camera as default etc ?
From your intro I assume you’re using the threejs fiber template? The template has a component currently which you can remove by opening the workspace and then going to “src/App.tsx” in line 17
For now I tried to understand the limit of “only export with unity” to make the game so I was on the simple “getting started” with Minimal template of Needle
Okay thanks, you’re great.
More of that, thanks for this marvelous tool, it’s going to revolute the way to create website I’m sure of it.
I’m a junior, full of dream to work on the futur of internet and I’m really happy to discover this type of tool !
A last question : do you work on an automatic export of script cs => ts actually ?
Okay you’re great
About camera : It’s static etc, but I ssee deformation between the unity camera and the Vite rendering, I tried to adpt my fov etc etc
Do you know what’s the problem ?