浏览代码

Update type in dynamic slot names when they change

/main
Peter Bay Bastian 7 年前
当前提交
4f983742
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/MaterialNodeView.cs

6
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/MaterialNodeView.cs


public void UpdatePortInputTypes()
{
foreach (var anchor in inputContainer.Concat(outputContainer).OfType<NodeAnchor>())
{
var slot = (MaterialSlot) anchor.userData;
anchor.anchorName = slot.displayName;
}
foreach (var attacher in m_Attachers)
{
var portInputView = (PortInputView)attacher.element;

正在加载...
取消
保存