Ejemplo n.º 1
0
        private bool RaiseSelectionChanging(UnityObject[] selected)
        {
            if (SelectionChanging != null)
            {
                RuntimeSelectionChangingArgs args = new RuntimeSelectionChangingArgs(selected);
                SelectionChanging(this, args);

                return(!args.Cancel);
            }

            return(true);
        }
Ejemplo n.º 2
0
        private bool RaiseSelectionChanging(UnityObject[] selected, out UnityObject[] filteredSelection)
        {
            if (SelectionChanging != null)
            {
                RuntimeSelectionChangingArgs args = new RuntimeSelectionChangingArgs(selected);
                SelectionChanging(this, args);
                filteredSelection = args.Selected.ToArray();
                return(!args.Cancel);
            }

            filteredSelection = selected;
            return(true);
        }