浏览代码

Cleaned up the code

/main
Martin Thorzen 7 年前
当前提交
34997ed9
共有 1 个文件被更改,包括 5 次插入6 次删除
  1. 11
      com.unity.shadergraph/Editor/Drawing/Views/MaterialNodeView.cs

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


VisualElement m_ControlsDivider;
IEdgeConnectorListener m_ConnectorListener;
VisualElement m_PortInputContainer;
VisualElement m_Title;
IconBadge m_WrongPipeline;
public void Initialize(AbstractMaterialNode inNode, PreviewManager previewManager, IEdgeConnectorListener connectorListener)
{

{
if (!masterNode.IsPipelineCompatible(RenderPipelineManager.currentPipeline))
{
m_WrongPipeline = IconBadge.CreateError("The current render pipeline is not compatible with this node preview.");
Add(m_WrongPipeline);
m_Title = this.Q("title");
m_WrongPipeline.AttachTo(m_Title, SpriteAlignment.LeftCenter);
IconBadge wrongPipeline = IconBadge.CreateError("The current render pipeline is not compatible with this node preview.");
Add(wrongPipeline);
VisualElement title = this.Q("title");
wrongPipeline.AttachTo(title, SpriteAlignment.LeftCenter);
}
}

正在加载...
取消
保存