浏览代码

Removed the ObjectControl and added ( sub) to the name of the sub graph node

/main
Martin Thorzen 6 年前
当前提交
11cbbe0d
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 1
      com.unity.shadergraph/Editor/Data/Nodes/Utility/SubGraphNode.cs
  2. 2
      com.unity.shadergraph/Editor/Drawing/Views/MaterialNodeView.cs

1
com.unity.shadergraph/Editor/Data/Nodes/Utility/SubGraphNode.cs


}
}
[ObjectControl("")]
public MaterialSubGraphAsset subGraphAsset
{
get

2
com.unity.shadergraph/Editor/Drawing/Views/MaterialNodeView.cs


{
var subGraphNode = node as SubGraphNode;
if (subGraphNode != null && subGraphNode.subGraphAsset != null)
title = subGraphNode.subGraphAsset.name;
title = subGraphNode.subGraphAsset.name + " (sub)";
else
title = node.name;
}

正在加载...
取消
保存