[Unity code] Windows window-mode control script
This article is available in Korean only. If you have questions, send them through the contact form and we will reply.
안녕하세요.
유니티 컨텐츠를 창 모드로 제어하기 위한 스크립트를 공유 합니다.
윈도우 자체 api를 호출하여 만들어진 컨텐츠의 크기나 위치 등을 자유롭게 제어 할 수 있습니다.
>호츨 코드 :programName만 빌드하신 프로그램의 이름을 넣으시면 됩니다.
#region (size setting) 윈도우 사이즈설정
public void OnSetWindowSize(int sX, int sY, int width, int height)
{
Debug.Log(">onSetWinodwSize x : " + sX + " y:" + sY + " widht:" + width + " height:" + height);
//////////////////////////////////////////////////////////////////////////
//--창 설정
Screen.SetResolution(width, height, false);
//------------ 위도우 팝업 설정
Test.WindowsOperations.NoBorderTopWindow(programName, sX, sY, width, height);
//////////////////////////////////////////////////////////////////////////
}
#endregion
감사 합니다.