Oculus Rift Build Freezes on Startup

I’ve developed a few games in Unity but this is my first time developing for Oculus. I’ve built a simple 3D space and in-engine everything seems to work fine. But when I build it as an executable and run that, it freezes immediately on startup. It definitely seems to be the Oculus causing this issue, as when I unplug the Oculus and run the build again it works fine.

I think I found a solution. I was opening the executable in Fullscreen. Looks like the Oculus absolutely must have the game run in Windowed mode to work.