浏览代码

fix text update

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
50b8f6e2
共有 2 个文件被更改,包括 9 次插入1 次删除
  1. 8
      com.unity.uiwidgets/Runtime/painting/inline_span.cs
  2. 2
      com.unity.uiwidgets/Runtime/painting/text_painter.cs

8
com.unity.uiwidgets/Runtime/painting/inline_span.cs


public override int GetHashCode() {
return (style != null ? style.GetHashCode() : 0);
}
public static bool operator ==(InlineSpan left, InlineSpan right) {
return Equals(left, right);
}
public static bool operator !=(InlineSpan left, InlineSpan right) {
return !Equals(left, right);
}
}
}

2
com.unity.uiwidgets/Runtime/painting/text_painter.cs


get { return _text; }
set {
D.assert(value == null || value.debugAssertIsValid());
if ((_text == null && value == null) || (_text != null && text.Equals(value))) {
if (_text == value) {
return;
}

正在加载...
取消
保存