Navigation
API > API/Editor > API/Editor/UnrealEd
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USelection
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/Selection.h |
| Include | #include "Selection.h" |
Syntax
UCLASS (Transient, MinimalAPI)
class USelection : public UObject
Remarks
Manages selections of objects. Used in the editor for selecting objects in the various browser windows.
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Call before beginning selection operations | ||
| int32 | CountSelections
(
UClass* ClassToCount, |
Untemplated version of CountSelections. | |
| int32 | CountSelections
(
bool bIgnorePendingKill |
Returns the number of selected objects of the specified type. | |
| USelection * | CreateActorSelection
(
UObject* InOuter, |
||
| USelection * | CreateComponentSelection
(
UObject* InOuter, |
||
| USelection * | CreateObjectSelection
(
UObject* InOuter, |
||
| void | Deselects the specified object. | ||
| void | DeselectAll
(
UClass* InClass |
Deselects all objects of the specified class, if no class is specified it deselects all objects. | |
| void | EndBatchSelectOperation
(
bool bNotify |
Should be called when selection operations are complete. | |
| void | If batch selection is active, sets flag indicating something actually changed. | ||
| UObject * | Returns the last selected object of the specified class. | ||
| T * | GetBottom () |
Returns the last selected object. | |
| UTypedElementSelectionSet * | Get the element selection set instance for this selection set, if any. | ||
| UObject * | GetSelectedObject
(
const int32 InIndex |
||
| int32 | GetSelectedObjects
(
UClass* FilterClass, |
||
| int32 | GetSelectedObjects
(
TArray< TWeakObjectPtr< UObject > >& OutSelectedObjects |
||
| int32 | GetSelectedObjects
(
TArray< T* >& OutSelectedObjects |
Fills in the specified array with all selected objects of the desired type. | |
| UObject * | Returns the first selected object of the specified class. | ||
| T * | GetTop () |
Returns the first selected object. | |
| bool | |||
| bool | IsClassSelected
(
UClass* Class |
||
| bool | IsSelected
(
const UObject* InObject |
Returns true if the specified object is non-NULL and selected. | |
| void | Manually invoke a selection changed notification for this set. | ||
| void | Manually invoke a selection changed notification for no specific set. Legacy BSP code only! | ||
| int32 | Num () |
Returns the number of objects in the selection set. | |
| void | Selects the specified object. | ||
| void | Selects or deselects the specified object, depending on the value of the bSelect flag. | ||
| void | SetElementSelectionSet
(
UTypedElementSelectionSet* InElementSelectionSet |
Set the element selection set instance for this selection set. | |
| void | ToggleSelect
(
UObject* InObject |
Toggles the selection state of the specified object. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| bool | Modify
(
bool bAlwaysMarkDirty |
Note that the object will be modified. | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnSelectionChanged | Params: UObject* NewSelection | ||
| FOnSelectionElementSelectionPtrChanged | Event fired when the typed element selection set for a selection is changed |
Constants
| Name | Description |
|---|---|
| SelectionChangedEvent | Called when selection in editor has changed |
| SelectionElementSelectionPtrChanged | Called when the assigned typed element selection pointer set for a selection is changed |
| SelectNoneEvent | Called to deselect everything |
| SelectObjectEvent | Called when an object has been selected (generally an actor) |