private void DisplayClipMenu(Rect position, AnimationClip clip)
        {
            popupCI.SetSourceView();

            AnimationSelectorWindow.DrawPresetButton(clip, GetOrderedClipList(), position, (selectedClip) => {
                popupCI.selectedClip = selectedClip;
                popupCI.SendEvent();
            });
        }
    public static void DrawPresetButton(AnimationClip current, AnimationClip[] clips, Rect position, Action <AnimationClip> onSelect)
    {
        AnimationSelectorWindow window = CreateInstance <AnimationSelectorWindow>();

        window.clips    = clips;
        window.position = position;
        window.Init(current, onSelect);
        window.ShowPopup();
    }