Unity スクリーンサイズ取得
作成日時:2018/11/16
更新日時:2018/11/16
スポンサーリンク
画面サイズ、解像度取得
GUI.Label(rect, string.Format("Screen {0}:{1}", Screen.width, Screen.height));
GUI.Label(rect, string.Format("Resolution {0}:{1}", Screen.currentResolution.width, Screen.currentResolution.height));
#if UNITY_EDITOR GUI.Label(rect, string.Format("screenRes {0}", UnityEditor.UnityStats.screenRes)); #endif