|
|
|
|
|
|
using UnityEditor.ShaderGraph; |
|
|
|
using UnityEditor.ShaderGraph.Drawing; |
|
|
|
using UnityEngine; |
|
|
|
using Debug = System.Diagnostics.Debug; |
|
|
|
using Object = UnityEngine.Object; |
|
|
|
|
|
|
|
[CustomEditor(typeof(ShaderGraphImporter))] |
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
[OnOpenAsset] |
|
|
|
[OnOpenAsset(0)] |
|
|
|
Debug.Log(instanceID); |
|
|
|
var path = AssetDatabase.GetAssetPath(instanceID); |
|
|
|
return ShowGraphEditWindow(path); |
|
|
|
} |