Switching platforms

Hey, I made a unity game for android without using buttons, navigating only with google VR. in “play mode” when testing the game I can use alt+ arrows to navigate but when I build it as windows platform I cannot move as I move in the Play mode. can someone know how to build the game in windows platform and navigate like in play mode?

You can use platform dependant compilation and have code just for windows/android. The Unity manual has more details on it Unity - Manual: Conditional compilation

2 Likes

Doesn’t work. the game runs and looks as it should be but nothing moves at windows platform…it full screen mode and I can see the mouse pointer and non of keys in the keyboard or in the mouse doing something

It does what it is meant to so without seeing how you are using it, there isn’t much anyone can do to help.

1 Like

What doesn’t work? What code specifically did you add?

1 Like