public static Sprite GetOrLoadSimulatorSprite() { SimDeviceInfo info = null; s_SimulatorDevices.TryGetValue(s_SelectedSim, out info); if (info != null && info.IsValid) { return(info.GetOrLoadSimulatorSprite()); } return(null); }
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)); }