public override void OnInspectorGUI() { if (assetTarget.myTextAsset != null) { if (GUILayout.Button("Analyze CSV File")) { GenerateQuests(); } } if (GUILayout.Button("Generate")) { TestEidtorWindow myWindow = EditorWindow.GetWindow(typeof(TestEidtorWindow)) as TestEidtorWindow; myWindow.Init(assetTarget); } base.OnInspectorGUI(); }
public static void OpenThisWindow() { TestEidtorWindow myWindow = EditorWindow.GetWindow(typeof(TestEidtorWindow)) as TestEidtorWindow; myWindow.Init(null); }