if(EditorUtility.DisplayDialog("Shader Graph Might Have Been Modified","Do you want to save the changes you made in the shader graph?","Save","Don't Save"))
{
UpdateAsset();
}
}
voidOnGUI()
{
varpresenter=m_GraphEditorView.presenter;
if(selected==newSelection)
return;
if(selected!=null)
{
if(EditorUtility.DisplayDialog("Save Old Graph?","Save Old Graph?","yes!","no"))