|
|
|
|
|
|
UpdateSize(); |
|
|
|
}*/ |
|
|
|
|
|
|
|
if (node is SubGraphNode) |
|
|
|
{ |
|
|
|
RegisterCallback<MouseDownEvent>(OnSubGraphDoubleClick); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void OnSubGraphDoubleClick(MouseDownEvent evt) |
|
|
|
{ |
|
|
|
if (evt.clickCount == 2) |
|
|
|
{ |
|
|
|
SubGraphNode subgraphNode = node as SubGraphNode; |
|
|
|
|
|
|
|
var path = AssetDatabase.GetAssetPath(subgraphNode.subGraphAsset); |
|
|
|
ShaderGraphImporterEditor.ShowGraphEditWindow(path); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public AbstractMaterialNode node { get; private set; } |
|
|
|