private bool RaiseSelectionChanging(UnityObject[] selected) { if (SelectionChanging != null) { RuntimeSelectionChangingArgs args = new RuntimeSelectionChangingArgs(selected); SelectionChanging(this, args); return(!args.Cancel); } return(true); }
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); }