본문 바로가기

게임 제작/유니티7

Coroutine 과 Time.timeScale 관계 Time.timeScale =0 으로 일시정지를 하니 코루틴이 멈추는 문제가 발생 yield return new WaitForSeconds(0.05f); 에서 WaitForSeconds 는 Time.timeScale에 영향을 받아 깨어나지 않는다. 대신 WaitForSecondsRealtime 을 사용하자. 2022. 4. 11.
InputField 에서 엔터를 입력해도 활성화 https://docs.unity3d.com/2019.1/Documentation/ScriptReference/UI.InputField.ActivateInputField.html Unity - Scripting API: UI.InputField.ActivateInputField You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see: You've told us there are code samples on this page which don't work. .. 2022. 4. 10.
모바일 게임에서 사용하는 절전모드 화면 https://blog.unity.com/kr/technology/how-on-demand-rendering-can-improve-mobile-performance 온디맨드 렌더링을 이용한 모바일 성능 개선 | Unity Blog 포럼에서 온디맨드 렌더링을 어떻게 활용하고 있는지 알려주세요. Windows, macOS, WebGL, iOS, Android에서 Unity 에디터와 스탠드얼론 플레이어를 대상으로 테스트를 완료했으나, 피드백은 언제든지 blog.unity.com 참고해서 만들어봐야겠다.. 2022. 4. 6.
화면 꺼짐 방지 화면이 꺼지지 않게 처리 Screen.sleepTimeout = SleepTimeout.NeverSleep; 디바이스 설정에 맞추도록 처리 Screen.sleepTimeout = SleepTimeout.SystemSetting; 2022. 4. 6.