Navigation
API > API/Runtime > API/Runtime/CoreUObject
Description
Returns an array of objects of a specific class. Optionally, results can include objects of derived classes as well.
| Name | GetObjectsOfClass |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectHash.h |
| Include Path | #include "UObject/UObjectHash.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectHash.cpp |
void GetObjectsOfClass
(
const UClass * ClassToLookFor,
TArray < UObject * > & Results,
bool bIncludeDerivedClasses,
EObjectFlags ExcludeFlags,
EInternalObjectFlags ExclusionInternalFlags
)
Parameters
| Name | Remarks |
|---|---|
| ClassToLookFor | Class of the objects to return. |
| Results | An output list of objects of the specified class. |
| 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. |
| ExclusiveInternalFlags | Specifies internal flags to use as a filter for which objects to return |