Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Chopium's avatar
Chopium
Honored Guest
10 years ago

Windowed Startup Menu in Unity 4.6

Background:
The unity app I am creating requires users to enter personal information before a game session can begin. Right now it launches a windowed gui so players can manage input fields w/KB+Mouse and interact with the desktop. After players set up the session, unity loads a selected scene and applies the player's settings.


The Problem:
It seems the oculus plugin wants to take over unity as soon as the app launches.

In direct to HMD mode, the startup menu appears as a window on the primary monitor, but blank. (It may be worth noting that the main menu scene has no oculus items/prefabs in it.)

In extended mode, the oculus plugin sets the game to fullscreen on the HMD display, then goes to windowed mode due to startup code. Since the session remains on the HMD disaply, the user can't see it or be expected to maneuver it back to the primary display.


Basically:
I would like to run the app in direct to HMD mode, but have an operable popup window appear before the game is shot to the headset. I also want the ability to run the game in non-VR mode even if the headset is plugged in. Is this possible?

1 Reply

Replies have been turned off for this discussion
  • You can try calling OVRManager.instance.gameObject.SetActive(false) and activate some other Camera in the scene.