|
|
|
|
|
|
using UnityEditor.Graphing; |
|
|
|
using UnityEditor.ShaderGraph; |
|
|
|
using UnityEditor.ShaderGraph.Drawing.Controls; |
|
|
|
using UnityEngine.WSA; |
|
|
|
|
|
|
|
namespace UnityEditor.ShaderGraph.Drawing |
|
|
|
{ |
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
node = inNode; |
|
|
|
title = inNode.name; |
|
|
|
UpdateTitle(); |
|
|
|
|
|
|
|
m_ControlsContainer = new VisualElement |
|
|
|
{ |
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void UpdateTitle() |
|
|
|
{ |
|
|
|
var subGraphNode = node as SubGraphNode; |
|
|
|
if (subGraphNode != null) |
|
|
|
title = subGraphNode.subGraphAsset.name; |
|
|
|
else |
|
|
|
title = node.name; |
|
|
|
} |
|
|
|
|
|
|
|
UpdateTitle(); |
|
|
|
expanded = node.drawState.expanded; |
|
|
|
|
|
|
|
// Update slots to match node modification
|
|
|
|