USelection::GetTop

Returns the first selected object of the specified class.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Selection.h

Include

#include "Engine/Selection.h"

Syntax

UObject * GetTop
(
    UClass * InClass,
    UClass * RequiredInterface,
    bool bArchetypesOnly
)

Remarks

Returns the first selected object of the specified class.

Returns

The first selected object of the specified class.

Parameters

Parameter

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss