UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TypedElementListObjectUtil Namespace Reference

Functions

UObjectGetObjectOfType (const TTypedElement< ITypedElementObjectInterface > &InObjectElement, const UClass *InRequiredClass)
 
bool HasObjects (FTypedElementListConstRef InElementList, const UClass *InRequiredClass)
 
int32 CountObjects (FTypedElementListConstRef InElementList, const UClass *InRequiredClass)
 
void ForEachObject (FTypedElementListConstRef InElementList, TFunctionRef< bool(UObject *)> InCallback, const UClass *InRequiredClass)
 
TArray< UObject * > GetObjects (FTypedElementListConstRef InElementList, const UClass *InRequiredClass)
 
UObjectGetTopObject (FTypedElementListConstRef InElementList, const UClass *InRequiredClass)
 
UObjectGetBottomObject (FTypedElementListConstRef InElementList, const UClass *InRequiredClass)
 
bool HasObjectsOfExactClass (FTypedElementListConstRef InElementList, const UClass *InClass)
 
int32 CountObjectsOfExactClass (FTypedElementListConstRef InElementList, const UClass *InClass)
 
void ForEachObjectClass (FTypedElementListConstRef InElementList, TFunctionRef< bool(UClass *)> InCallback)
 
template<typename RequiredClassType >
bool HasObjects (FTypedElementListConstRef InElementList)
 
template<typename RequiredClassType >
int32 CountObjects (FTypedElementListConstRef InElementList)
 
template<typename RequiredClassType >
void ForEachObject (FTypedElementListConstRef InElementList, TFunctionRef< bool(RequiredClassType *)> InCallback)
 
template<typename RequiredClassType >
TArray< RequiredClassType * > GetObjects (FTypedElementListConstRef InElementList)
 
template<typename RequiredClassType >
RequiredClassTypeGetTopObject (FTypedElementListConstRef InElementList)
 
template<typename RequiredClassType >
RequiredClassTypeGetBottomObject (FTypedElementListConstRef InElementList)
 
template<typename ClassType >
bool HasObjectsOfExactClass (FTypedElementListConstRef InElementList)
 
template<typename ClassType >
bool CountObjectsOfExactClass (FTypedElementListConstRef InElementList)
 

Function Documentation

◆ CountObjects() [1/2]

int32 TypedElementListObjectUtil::CountObjects ( FTypedElementListConstRef  InElementList)

Count the number of objects in the given list of elements.

◆ CountObjects() [2/2]

TYPEDELEMENTRUNTIME_API int32 TypedElementListObjectUtil::CountObjects ( FTypedElementListConstRef  InElementList,
const UClass InRequiredClass = nullptr 
)

Count the number of objects in the given list of elements.

◆ CountObjectsOfExactClass() [1/2]

template<typename ClassType >
bool TypedElementListObjectUtil::CountObjectsOfExactClass ( FTypedElementListConstRef  InElementList)

Count the number of objects of the exact class in the given list of elements (a quick test using the class counter, skipping derived types).

◆ CountObjectsOfExactClass() [2/2]

TYPEDELEMENTRUNTIME_API int32 TypedElementListObjectUtil::CountObjectsOfExactClass ( FTypedElementListConstRef  InElementList,
const UClass InClass 
)

Count the number of objects of the exact class in the given list of elements (a quick test using the class counter, skipping derived types).

◆ ForEachObject() [1/2]

void TypedElementListObjectUtil::ForEachObject ( FTypedElementListConstRef  InElementList,
TFunctionRef< bool(RequiredClassType *)>  InCallback 
)

Enumerate the objects from the given list of elements.

Note
Return true from the callback to continue enumeration.

◆ ForEachObject() [2/2]

TYPEDELEMENTRUNTIME_API void TypedElementListObjectUtil::ForEachObject ( FTypedElementListConstRef  InElementList,
TFunctionRef< bool(UObject *)>  InCallback,
const UClass InRequiredClass = nullptr 
)

Enumerate the objects from the given list of elements.

Note
Return true from the callback to continue enumeration.

◆ ForEachObjectClass()

TYPEDELEMENTRUNTIME_API void TypedElementListObjectUtil::ForEachObjectClass ( FTypedElementListConstRef  InElementList,
TFunctionRef< bool(UClass *)>  InCallback 
)

Enumerate the classes of the objects in the given list of elements.

Note
Return true from the callback to continue enumeration.

◆ GetBottomObject() [1/2]

RequiredClassType * TypedElementListObjectUtil::GetBottomObject ( FTypedElementListConstRef  InElementList)

Get the last object of the given type from the given list of elements.

◆ GetBottomObject() [2/2]

TYPEDELEMENTRUNTIME_API UObject * TypedElementListObjectUtil::GetBottomObject ( FTypedElementListConstRef  InElementList,
const UClass InRequiredClass = nullptr 
)

Get the last object of the given type from the given list of elements.

◆ GetObjectOfType()

UObject * TypedElementListObjectUtil::GetObjectOfType ( const TTypedElement< ITypedElementObjectInterface > &  InObjectElement,
const UClass InRequiredClass 
)

◆ GetObjects() [1/2]

TArray< RequiredClassType * > TypedElementListObjectUtil::GetObjects ( FTypedElementListConstRef  InElementList)

Get the array of objects from the given list of elements.

◆ GetObjects() [2/2]

TYPEDELEMENTRUNTIME_API TArray< UObject * > TypedElementListObjectUtil::GetObjects ( FTypedElementListConstRef  InElementList,
const UClass InRequiredClass = nullptr 
)

Get the array of objects from the given list of elements.

◆ GetTopObject() [1/2]

RequiredClassType * TypedElementListObjectUtil::GetTopObject ( FTypedElementListConstRef  InElementList)

Get the first object of the given type from the given list of elements.

◆ GetTopObject() [2/2]

TYPEDELEMENTRUNTIME_API UObject * TypedElementListObjectUtil::GetTopObject ( FTypedElementListConstRef  InElementList,
const UClass InRequiredClass = nullptr 
)

Get the first object of the given type from the given list of elements.

◆ HasObjects() [1/2]

bool TypedElementListObjectUtil::HasObjects ( FTypedElementListConstRef  InElementList)

Test whether there are any objects in the given list of elements.

◆ HasObjects() [2/2]

TYPEDELEMENTRUNTIME_API bool TypedElementListObjectUtil::HasObjects ( FTypedElementListConstRef  InElementList,
const UClass InRequiredClass = nullptr 
)

Test whether there are any objects in the given list of elements.

◆ HasObjectsOfExactClass() [1/2]

template<typename ClassType >
bool TypedElementListObjectUtil::HasObjectsOfExactClass ( FTypedElementListConstRef  InElementList)

Test if there are any objects of the exact class in the given list of elements (a quick test using the class counter, skipping derived types).

◆ HasObjectsOfExactClass() [2/2]

TYPEDELEMENTRUNTIME_API bool TypedElementListObjectUtil::HasObjectsOfExactClass ( FTypedElementListConstRef  InElementList,
const UClass InClass 
)

Test if there are any objects of the exact class in the given list of elements (a quick test using the class counter, skipping derived types).