public override void OnInspectorGUI() { if (GUILayout.Button("Open Editor")) { AIGraph.OpenDialogueGraphWindow(target as ActorAI); } }
public static bool OpenEditor(int instanceId, int line) { ActorAI obj = EditorUtility.InstanceIDToObject(instanceId) as ActorAI; if (obj != null) { AIGraph.OpenDialogueGraphWindow(obj); return(true); } return(false); }