|
|
|
|
|
|
panels.Remove(panel); |
|
|
|
} |
|
|
|
|
|
|
|
float _devicePixelRatioOverride; |
|
|
|
|
|
|
|
public bool hardwareAntiAliasing; |
|
|
|
|
|
|
|
public float devicePixelRatioEditorOnlyOverride; |
|
|
|
|
|
|
|
public TextFont[] fonts; |
|
|
|
|
|
|
|
Configurations _configurations; |
|
|
|
|
|
|
#if !UNITY_EDITOR
|
|
|
|
return _wrapper.displayMetrics.DevicePixelRatioByDefault; |
|
|
|
#endif
|
|
|
|
if (devicePixelRatioEditorOnlyOverride != 0) { |
|
|
|
return devicePixelRatioEditorOnlyOverride; |
|
|
|
} |
|
|
|
|
|
|
|
var currentDpi = Screen.dpi; |
|
|
|
if (currentDpi == 0) { |
|
|
|
currentDpi = canvas.GetComponent<CanvasScaler>().fallbackScreenDPI; |
|
|
|