浏览代码

Move addition of resize handle higher in inspector prevewi window to cause it to overlay other elements

/main
Jens Holm 7 年前
当前提交
89613602
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 8
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/GraphInspectorView.cs

8
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/GraphInspectorView.cs


foreach (var property in m_Graph.properties)
m_PropertyItems.Add(new ShaderPropertyView(m_Graph, property));
var resizeHandle = new Label { name = "resize", text = "" };
resizeHandle.AddManipulator(new Draggable(OnResize));
Add(resizeHandle);
// Nodes missing custom editors:
// - PropertyNode
// - SubGraphInputNode

// { typeof(AbstractSurfaceMasterNode), typeof(SurfaceMasterNodeEditorView) }
};
var resizeHandle = new Label { name = "resize", text = "" };
resizeHandle.AddManipulator(new Draggable(OnResize));
Add(resizeHandle);
}
void OnResize(Vector2 resizeDelta)

正在加载...
取消
保存