ForEachObjectOfClass

Performs an operation on all objects with a given outer

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 ForEachObjectOfClass
(
    const UClass * ClassToLookFor,
    TFunctionRef< void *)> Operation,
    bool bIncludeDerivedClasses,
    EObjectFlags ExcludeFlags,
    EInternalObjectFlags ExclusionInternalFlags
)

Remarks

Performs an operation on all objects with a given outer

Parameters

Parameter

Description

Outer

Outer to search for

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