ForEachObjectWithOuterBreakable

Performs an operation on objects with a given outer, with the possibility to break iteration

Choose your operating system:

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 ForEachObjectWithOuterBreakable
(
    const class UObjectBase * Outer,
    TFunctionRef< bool *)> Operation,
    bool bIncludeNestedObjects,
    EObjectFlags ExclusionFlags,
    EInternalObjectFlags ExclusionInternalFlags
)

Remarks

Performs an operation on objects with a given outer, with the possibility to break iteration

that the operation must not modify the UObject hash maps so it can not create, rename or destroy UObjects.

Parameters

Parameter

Description

Outer

Outer to search for

Operation

Function to be called for each object, returning if we want to continue iteration or not

bIncludeNestedObjects

If true, then things whose outers directly or indirectly have Outer as an outer are included, these are the nested objects.

ExclusionFlags

Specifies flags to use as a filter for which objects to return

ExclusiveInternalFlags

Specifies internal flags to use as a filter for which objects to return