浏览代码

Merge pull request #244 from Unity-Technologies/fix_sliver_bug

add devicePixelRatioEditorOnlyOverride to EditorPanel
/main
GitHub 3 年前
当前提交
38e15ee1
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 5
      com.unity.uiwidgets/Editor/UIWidgetsEditorPanel.cs

5
com.unity.uiwidgets/Editor/UIWidgetsEditorPanel.cs


get { return Mathf.RoundToInt(f: position.size.y); }
}
protected float? devicePixelRatioEditorOnlyOverride = null;
get { return EditorGUIUtility.pixelsPerPoint; }
get {
return devicePixelRatioEditorOnlyOverride ?? EditorGUIUtility.pixelsPerPoint; }
}
void Update() {

正在加载...
取消
保存