コード例 #1
0
        public static Sprite GetOrLoadSimulatorSprite()
        {
            SimDeviceInfo info = null;

            s_SimulatorDevices.TryGetValue(s_SelectedSim, out info);

            if (info != null && info.IsValid)
            {
                return(info.GetOrLoadSimulatorSprite());
            }

            return(null);
        }
コード例 #2
0
        public static Rect GetNormalizedSafeArea()
        {
            SimDeviceInfo info = null;

            s_SimulatorDevices.TryGetValue(s_SelectedSim, out info);

            if (info != null && info.IsValid)
            {
                return(info.GetNormalizedSafeArea());
            }

            return(new Rect(0, 0, 1, 1));
        }