Esempio n. 1
0
 private void OnBoxSelection(object sender, BoxSelectionArgs e)
 {
     if (CanSelect)
     {
         m_editor.Selection.objects = e.GameObjects;
     }
 }
Esempio n. 2
0
 private void OnBoxSelection(object sender, BoxSelectionArgs e)
 {
     if (CanSelect)
     {
         if (RaiseSelectionChanging(e.GameObjects))
         {
             m_editor.Selection.objects = e.GameObjects;
             RaiseSelectionChanged();
         }
     }
 }
Esempio n. 3
0
 private void OnBoxSelection(object sender, BoxSelectionArgs e)
 {
     if (CanSelect)
     {
         UnityObject[] filteredSelection;
         if (RaiseSelectionChanging(e.GameObjects, out filteredSelection))
         {
             if (filteredSelection.Length == 0)
             {
                 Selection.objects = null;
             }
             else
             {
                 Selection.objects = filteredSelection;
             }
             RaiseSelectionChanged();
         }
     }
 }
Esempio n. 4
0
        private void OnBoxSelection(object sender, BoxSelectionArgs e)
        {
            if (!CanSelect)
            {
                return;
            }

            IEnumerable <GameObject> gameObjects = BoxcastUIObjects();

            UnityObject[] filteredSelection;
            if (RaiseSelectionChanging(gameObjects.Union(e.GameObjects).ToArray(), out filteredSelection))
            {
                if (filteredSelection.Length == 0)
                {
                    Selection.objects = null;
                }
                else
                {
                    Selection.objects = filteredSelection;
                }
                RaiseSelectionChanged();
            }
        }