diff --git a/Templates/VisualStudio2022/ProjectTemplates/Multiplatform.NetCore/WindowsDX/Program.cs b/Templates/VisualStudio2022/ProjectTemplates/Multiplatform.NetCore/WindowsDX/Program.cs index f6be9514a07..a9fe8a73296 100644 --- a/Templates/VisualStudio2022/ProjectTemplates/Multiplatform.NetCore/WindowsDX/Program.cs +++ b/Templates/VisualStudio2022/ProjectTemplates/Multiplatform.NetCore/WindowsDX/Program.cs @@ -13,6 +13,9 @@ public static class Program [STAThread] static void Main() { + // Uncomment this line to enable VR with the nkast.Kni.Platform.WinForms.DX11.OculusOVR package. + //Microsoft.Xna.Platform.XR.XRFactory.RegisterXRFactory(new Microsoft.Xna.Platform.XR.LibOVR.ConcreteXRFactory()); + using (var game = new $ext_safeprojectname$Game()) game.Run(); } diff --git a/Templates/VisualStudio2022/ProjectTemplates/WindowsDX.NetCore/Program.cs b/Templates/VisualStudio2022/ProjectTemplates/WindowsDX.NetCore/Program.cs index 421bbe0752f..6ed7ff6c43d 100644 --- a/Templates/VisualStudio2022/ProjectTemplates/WindowsDX.NetCore/Program.cs +++ b/Templates/VisualStudio2022/ProjectTemplates/WindowsDX.NetCore/Program.cs @@ -13,6 +13,9 @@ public static class Program [STAThread] static void Main() { + // Uncomment this line to enable VR with the nkast.Kni.Platform.WinForms.DX11.OculusOVR package. + //Microsoft.Xna.Platform.XR.XRFactory.RegisterXRFactory(new Microsoft.Xna.Platform.XR.LibOVR.ConcreteXRFactory()); + using (var game = new $safeprojectname$Game()) game.Run(); }