How to export simply my game view as website

Vite is just responsible for running the local server (and later bundling etc) - so it’s actually threejs/webgl :slightly_smiling_face:

But you’re right - it should probably not affect the camera (or the camera should log a warning if its scaled like that :thinking: ) will think about it

Ok !
And, in case, I tried the rotate example from the doc
It works gret, but I see the rotate on my navigator but not on the game view, is it normal ?

by user 224464722878005248

In the Game View means in Unity?

Yeah I mean when I play it on unity it switchs on game view

by user 224464722878005248

by user 224464722878005248

It’s normal because the component is empty

by user 224464722878005248

That’s expected yes - we dont generate “fully functional” c# components from typescript but you can think of it as a shell so if you want to have it run in Unity AND in threejs you would have to write the logic twice (once in C# and once in typescript)

Hmmmm

by user 224464722878005248

Okay

by user 224464722878005248

exactly. It just contains the fields and the public methods so you can assign your values and references from Unity (and hook up functions via e.g. UnityEvents)

So I need to use my navigator as “game view” so
Okay, I note that

by user 224464722878005248

Thanks for your patience

by user 224464722878005248

Yes your browser becomes your gameview basically :slightly_smiling_face:

Btw do you have a link / example of what you’re trying to build?

by user 224464722878005248

It’s in same time a “simple project in unity” but a good challenge to translate it in typescript.

by user 224464722878005248

Yes awesome :slightly_smiling_face: and do you have any experience with typescript or are you getting started now? :slightly_smiling_face:

Looking forward to the game :sunglasses:

I have basis ^^ I come from javascript I use Typescript only from weeks

by user 224464722878005248

But for example, in Unity you used update to verify if a keyboard input is pressed and make an action
On Typescript… you used EventListener

by user 224464722878005248