How can I build a project for SteamVR and non VR?

I’ve been looking around for a tutorial or guide that can help show how to create a game that could be played normally and also supports VR, but haven’t found a full answer yet. Does anyone know of a guide that helps describe how to build a project that will support both?

I have questions around how to build the game so when it launches it knows to use certain inputs and can use graphical optimizations, etc.

I think you need to have two different “game modes”
so when you want to run it in vr you would have a shortcut to the game and -vr at the end
you could also make logic that detects the hmd and steam vr
then initiates the vr game mode automatically
you could have a first player pawn or a vr pawn as default and first or vr gamemode set depending on whether or not there is an active hmd.

Thanks for your reply!

After doing some digging I think I’m narrowing down based on what you said. I was thinking that having different game modes or different character controllers/pawns would be the way to go but I’m still confused on how to know if the game was launched with SteamVR or not. I’m sure it’s simple but I haven’t found the solution yet.

Any ideas?

I am not sure
I never use the steam vr plugin
I only use open xr
In 4.27 there is a “flying template”
if you look at the pawn in it
you see that it can detect an hmd and it works in both non vr and vr mode
I am not advanced enough with bp to help you there