Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/USelection > API/Editor/UnrealEd/USelection/GetTop
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/Selection.h |
| Include | #include "Selection.h" |
UObject * GetTop
(
const UClass * InClass,
const UClass * RequiredInterface,
bool bArchetypesOnly
)
Remarks
Returns the first selected object of the specified class. The first selected object of the specified class.
Parameters
| Name | Description |
|---|---|
| InClass | The class of object to return. Must be non-NULL. |
| RequiredInterface | [opt] Interface this class must implement to be returned. May be NULL. |
| bArchetypesOnly | [opt] true to only return archetype objects, false otherwise |