In an Unreal Engine project I was working on, during my tests I needed the option to fast Enable/Disable the HMD (Head Mounted Display). In basic words, I needed to go fast between viewing the game on the Oculus/Vive (aka VR) and seeing the game in normal mode like you would normally see a game.
Add the following Blueprint in your Level Blueprint or to your FirstPerson Controller Blueprint in case you need the functionality between the levels.
Whenever you press the Z key the game will turn on/off the HMD. That’s what the FlipFlop is going to do. It will remember the last action it took, and it will just filp… or flop 🙂