Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
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 |
void ForEachObjectOfClass
(
const UClass * ClassToLookFor,
TFunctionRef < void *)> Operation,
bool bIncludeDerivedClasses,
EObjectFlags ExcludeFlags,
EInternalObjectFlags ExclusionInternalFlags
)
Remarks
Performs an operation on all objects of the provided class Note that the operation must not modify UObject hash maps so it can not create, rename or destroy UObjects.
Parameters
| Name | Description |
|---|---|
| Outer | UObject class 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. |