免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
Unity3d 去掉exe版本的邊框
  • using System;  
  • using System.Runtime.InteropServices;  
  • using UnityEngine;  
  •   
  • public class WindowMOD MonoBehaviour  
  •  
  •     public Rect screenPosition;  
  •     [DllImport("user32.dll")]  
  •     static extern IntPtr SetWindowLong (IntPtr hwnd,int  _nIndex ,int  dwNewLong);  
  •     [DllImport("user32.dll")]  
  •     static extern bool SetWindowPos (IntPtr hWnd, int hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags);  
  •     [DllImport("user32.dll")]  
  •     static extern IntPtr GetForegroundWindow ();  
  •   
  •     const uint SWP_SHOWWINDOW 0x0040;  
  •     const int GWL_STYLE -16;  
  •     const int WS_BORDER 1;  
  •     const int WS_POPUP 0x800000;  
  •   
  •     void Start ()  
  •      
  •         SetWindowLong(GetForegroundWindow (), GWL_STYLE, WS_POPUP);//將網(wǎng)上的WS_BORDER替換成WS_POPUP  
  •         bool result SetWindowPos (GetForegroundWindow (), 0,(int)screenPosition.x,(int)screenPosition.y, (int)screenPosition.width,(intscreenPosition.height, SWP_SHOWWINDOW);  
  •      
  •                                                                                           
  • 這樣子在編輯模式下點運行,我的Unity的邊框確實木有了。然而,發(fā)布之后的exe文件仍然帶有邊框。在playersetting中將DisplayResolution Dialog設(shè)置為Disabled或者Hidden ByDefault。然后再發(fā)布的exe就可以直接無邊框顯示啦。
  • 本站僅提供存儲服務,所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報
    打開APP,閱讀全文并永久保存 查看更多類似文章
    猜你喜歡
    類似文章
    設(shè)定unity3d執(zhí)行程序運行后的屏幕大小和屏幕坐標 | unity3d中文網(wǎng)站,unity3d中文論壇,unity3d學習社區(qū),unity3d教程,unity3d專業(yè)論壇,unity3d教學,uni
    c# 移動拖動無邊框窗體
    c#如何獲得系統(tǒng)所有窗口名稱(包括隱藏窗口)
    C#將exe運行程序嵌入到自己的winform窗體中
    C#截取 當前桌面的活動窗體圖像
    [c#] 通過 WIN32 API 實現(xiàn)嵌入程序窗體
    更多類似文章 >>
    生活服務
    分享 收藏 導長圖 關(guān)注 下載文章
    綁定賬號成功
    后續(xù)可登錄賬號暢享VIP特權(quán)!
    如果VIP功能使用有故障,
    可點擊這里聯(lián)系客服!

    聯(lián)系客服