marwie1
(marwi)
October 20, 2022, 12:00am
21
Vite is just responsible for running the local server (and later bundling etc) - so it’s actually threejs/webgl
But you’re right - it should probably not affect the camera (or the camera should log a warning if its scaled like that ) 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
marwie1
(marwi)
October 20, 2022, 12:00am
23
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
marwie1
(marwi)
October 20, 2022, 12:00am
27
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
marwie1
(marwi)
October 20, 2022, 12:00am
30
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
marwie1
(marwi)
October 20, 2022, 12:00am
33
Yes your browser becomes your gameview basically
marwie1
(marwi)
October 20, 2022, 12:00am
34
Btw do you have a link / example of what you’re trying to build?
VIDEO
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
marwie1
(marwi)
October 20, 2022, 12:00am
37
Yes awesome and do you have any experience with typescript or are you getting started now?
marwie1
(marwi)
October 20, 2022, 12:00am
38
Looking forward to the game
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