public override void OnInspectorGUI() { DrawDefaultInspector(); EffectSystemControl myScript = (EffectSystemControl)target; if (GUILayout.Button("Open Editor")) { //myScript.OpenEditor(); FXSystemEditor window = EditorWindow.GetWindow(typeof(FXSystemEditor), false) as FXSystemEditor; window.SetTarget(myScript); } }
private static void OpenWindow() { FXSystemEditor window = GetWindow <FXSystemEditor>(); window.titleContent = new GUIContent("FXSystem Editor"); }