Example #1
0
    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);
        }
    }
Example #2
0
 public void SetTarget(EffectSystemControl target)
 {
     this.target = target;
     RefreshEditor();
 }