private void MenuNavigator_OnAfterSelect(UiEventNavigation source, BaseEventData arg)
 {
     // Check if we have the scroll view open
     if (scrollable != null)
     {
         // Scroll to this control
         ScrollingHelper.ScrollVerticallyTo(scrollable, source);
     }
     LastSelectedElement = source;
 }
        public void ScrollToSelectable(UiEventNavigation selectable, bool forceCenter)
        {
            // Check if we have the scroll view open
            if ((scrollable != null) && (selectable != null))
            {
                // Scroll to this control
                ScrollingHelper.ScrollVerticallyTo(scrollable, selectable, boundsCache, forceCenter);

                // Highlight this element
                MenuManager manager = Singleton.Get <MenuManager>();
                if (manager != null)
                {
                    manager.SelectGui(selectable.Selectable);
                }
            }
        }