Пример #1
0
        internal void Blur()
        {
            m_SavedFocusedElement = focusController?.GetLeafFocusedElement();

            if (m_SavedFocusedElement != null && !(m_SavedFocusedElement is IMGUIContainer))
            {
                m_SavedFocusedElement.Blur();
            }
        }
Пример #2
0
 internal void BlurLastFocusedElement()
 {
     if (m_LastFocusedElement != null && !(m_LastFocusedElement is IMGUIContainer))
     {
         // Blur will change the lastFocusedElement to null
         var tmpLastFocusedElement = m_LastFocusedElement;
         m_LastFocusedElement.Blur();
         m_LastFocusedElement = tmpLastFocusedElement;
     }
 }