fzhangtj 6 年前
当前提交
8b63b4f4
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. 1
      Assets/UIWidgets/painting/text_span.cs
  2. 3
      Assets/UIWidgets/ui/txt/utils.cs

1
Assets/UIWidgets/painting/text_span.cs


using UIWidgets.foundation;
using UIWidgets.gestures;
using UIWidgets.ui;
using UnityEditor;
using UnityEngine.Assertions;
namespace UIWidgets.painting

3
Assets/UIWidgets/ui/txt/utils.cs


using System;
using UnityEditor;
namespace UIWidgets.ui
{

{
return Math.Round(v * EditorGUIUtility.pixelsPerPoint) / EditorGUIUtility.pixelsPerPoint;
return Math.Round(v * Window.instance.devicePixelRatio) / Window.instance.devicePixelRatio;
}
}
}
正在加载...
取消
保存