浏览代码

Fix weird bar under title bar

Signed-off-by: joce <joce@unity3d.com>
/main
joce 8 年前
当前提交
184e9204
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
      MaterialGraphProject/Assets/NewUI/Editor/Decorators/GridBackground.cs

4
MaterialGraphProject/Assets/NewUI/Editor/Decorators/GridBackground.cs


m_Container = graphView.contentViewContainer;
Rect clientRect = graphView.position;
// Since we're always stretch to parent size, we will use (0,0) as (x,y) coordinates
clientRect.x = 0;
clientRect.y = 0;
var containerScale = new Vector3(m_Container.transform.GetColumn(0).magnitude,
m_Container.transform.GetColumn(1).magnitude,
m_Container.transform.GetColumn(2).magnitude);

正在加载...
取消
保存