ForEachObjectOfClasses

Performs an operation on all objects of the provided classes

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectHash.h

Include

#include "UObject/UObjectHash.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectHash.cpp

Syntax

void ForEachObjectOfClasses
(
    TArrayView< const UClass * > ClassesToLookFor,
    TFunctionRef< void *)> Operation,
    EObjectFlags ExcludeFlags,
    EInternalObjectFlags ExclusionInternalFlags
)

Remarks

Performs an operation on all objects of the provided classes

Parameters

Parameter

Description

Classes

UObject Classes to loop over instances of

Operation

Function to be called for each object

bIncludeDerivedClasses

If true, the results will include objects of child classes as well.

AdditionalExcludeFlags

Objects with any of these flags will be excluded from the results.

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