版本 unity2018.2.7

[DllImport(“user32.dll”)]
public static extern int SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int x, int y, int Width, int Height, int flags);
[DllImport(“user32.dll”)]
static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
在用这两个方法设置时代码不起作用,需要在打包设置将FullsreeenMode改为Windowedunity打包代码去边框,设置窗口大小,位置,设置问题
设置完后,代码起作用

相关文章:

  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案