C# Class UnityEditor.Selection

Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Properties

Property Type Description
selectionChanged System.Action

Private Properties

Property Type Description
Add void
Add void
GetObjectsMode Object[]
GetTransforms UnityEngine.Transform[]
Internal_CallSelectionChanged void
Remove void
Remove void

Public Methods

Method Description
Contains ( Object obj ) : bool

Returns whether an object is contained in the current selection.

Contains ( int instanceID ) : bool

Returns whether an object is contained in the current selection.

GetFiltered ( Type type, SelectionMode mode ) : Object[]

Returns the current selection filtered by type and mode.

Private Methods

Method Description
Add ( Object obj ) : void
Add ( int instanceID ) : void
GetObjectsMode ( SelectionMode mode ) : Object[]
GetTransforms ( SelectionMode mode ) : UnityEngine.Transform[]
Internal_CallSelectionChanged ( ) : void
Remove ( Object obj ) : void
Remove ( int instanceID ) : void

Method Details

Contains() public static method

Returns whether an object is contained in the current selection.

public static Contains ( Object obj ) : bool
obj Object
return bool

Contains() public static method

Returns whether an object is contained in the current selection.

public static Contains ( int instanceID ) : bool
instanceID int
return bool

GetFiltered() public static method

Returns the current selection filtered by type and mode.

public static GetFiltered ( Type type, SelectionMode mode ) : Object[]
type System.Type Only objects of this type will be retrieved.
mode SelectionMode Further options to refine the selection.
return Object[]

Property Details

selectionChanged public static property

Delegate callback triggered when currently active/selected item has changed.

public static Action,System selectionChanged
return System.Action