浏览代码

Updated with the PR feedback

/main
Martin Thorzen 7 年前
当前提交
7688ce53
共有 3 个文件被更改,包括 1 次插入4 次删除
  1. 2
      ShaderGraph/com.unity.shadergraph/Editor/Data/Graphs/AbstractMaterialGraph.cs
  2. 1
      ShaderGraph/com.unity.shadergraph/Editor/Drawing/MaterialGraphEditWindow.cs
  3. 2
      ShaderGraph/com.unity.shadergraph/Editor/Drawing/Views/MaterialNodeView.cs

2
ShaderGraph/com.unity.shadergraph/Editor/Data/Graphs/AbstractMaterialGraph.cs


set { m_PreviewData = value; }
}
[NonSerialized]
string m_Name;
public string name { get; set; }
[SerializeField]

1
ShaderGraph/com.unity.shadergraph/Editor/Drawing/MaterialGraphEditWindow.cs


using UnityEditor.Graphing.Util;
using UnityEngine;
using UnityEditor.Graphing;
using UnityEditorInternal;
using Debug = UnityEngine.Debug;
using Object = UnityEngine.Object;
using Edge = UnityEditor.Experimental.UIElements.GraphView.Edge;

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


{
if (evt.target is Node)
{
evt.menu.AppendAction("Copy shader", CopyToClipboard, node.hasPreview ? ContextualMenu.MenuAction.StatusFlags.Normal : ContextualMenu.MenuAction.StatusFlags.Hidden);
evt.menu.AppendAction("Copy Shader", CopyToClipboard, node.hasPreview ? ContextualMenu.MenuAction.StatusFlags.Normal : ContextualMenu.MenuAction.StatusFlags.Hidden);
evt.menu.AppendAction("Show Generated Code", ShowGeneratedCode, node.hasPreview ? ContextualMenu.MenuAction.StatusFlags.Normal : ContextualMenu.MenuAction.StatusFlags.Hidden);
}

正在加载...
取消
保存