我正在使用Monogame和C#开发游戏.我有一个wpf应用程序,用于全屏启动的菜单.当我点击菜单上的播放时,我会进入Monogame项目.如何在全屏启动Monogame解决方案,就像使用wpf菜单一样?
您可以将IsFullscreen属性设置为true.
//you likely already have this line (or similar)
graphics = new GraphicsDeviceManager(this);
//set the GraphicsDeviceManager's fullscreen property
graphics.IsFullScreen = true;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10987 次 |
| 最近记录: |