Exemplo n.º 1
0
        void OnLostFocus()
        {
            this.Close();
            __window = null;

            //Debug.Log ("Hide");
        }
Exemplo n.º 2
0
        public static void ShowWindow(Rect rect, AnimationClip clip, EditorCurveBinding binding)
        {
            if (__window != null)
            {
                __window.Close();
                //Debug.Log ("Hide Prev");
            }

            __window           = ScriptableObject.CreateInstance <CurveEditorWindow> ();                         //  EditorWindow.GetWindow<CurveEditorWindow> ();
            __window.__binding = binding;
            __window.__clip    = clip;
            //rect = new Rect (0, 0, 100, 100);
            __window.position = rect;
            __window.ShowPopup();

            __window.Focus();
        }