浏览代码

Repaint property node control when name changes

/main
Peter Bay Bastian 7 年前
当前提交
90e67259
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 8
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/PropertyControl.cs

8
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/PropertyControl.cs


using System;
using System.Linq;
using System.Reflection;
using UnityEditor.Graphing;
using UnityEngine.Experimental.UIElements;
using UnityEditor.ShaderGraph;

}
}
public class PropertyControlView : VisualElement
public class PropertyControlView : VisualElement, INodeModificationListener
{
PropertyNode m_Node;

m_Node.propertyGuid = propertiesGUID[value];
}
}
}
public void OnNodeModified(ModificationScope scope)
{
Dirty(ChangeType.Repaint);
}
}
}
正在加载...
取消
保存