浏览代码

Merge branch 'master' of github.com:UnityTech/UIWidgets into filter_records

/main
Yuncong Zhang 5 年前
当前提交
e98fd5d9
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 8
      Runtime/ui/renderer/common/geometry/path/path.cs
  2. 4
      Runtime/ui/renderer/common/geometry/path/path_cache.cs

8
Runtime/ui/renderer/common/geometry/path/path.cs


return;
}
this._isNaiveRRect = isNaiveRRect && this._hasOnlyMoveTos();
if (this._isNaiveRRect) {
this._shapeHint = shapeHint;
this._rRectCorner = corner;
}
this._shapeHint = shapeHint;
this._rRectCorner = corner;
}
bool _hasOnlyMoveTos() {

this.needCache = false;
this.pathKey = 0;
this._isNaiveRRect = false;
this._shapeHint = uiPathShapeHint.Other;
this._rRectCorner = 0;
}
void _reset() {

4
Runtime/ui/renderer/common/geometry/path/path_cache.cs


}
uiVertexUV _expandFill(float fringe) {
float aa = fringe;
float aa = this.canSkipAAHairline ? 0f : fringe;
float woff = aa * 0.5f;
var points = this._points;
var paths = this._paths;

uiList<Vector3> _strokeVertices = null;
uiList<Vector2> _strokeUV = null;
if (aa > 0.0f && !this.canSkipAAHairline) {
if (aa > 0.0f) {
_strokeVertices = ObjectPool<uiList<Vector3>>.alloc();
_strokeUV = ObjectPool<uiList<Vector2>>.alloc();
cvertices = 0;

正在加载...
取消
保存