GetObjectsWithPackage

Returns an array of all objects found within a given package

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 GetObjectsWithPackage
(
    const class UPackage * Outer,
    TArray< UObject * > & Results,
    bool bIncludeNestedObjects,
    EObjectFlags ExclusionFlags,
    EInternalObjectFlags ExclusionInternalFlags
)

Remarks

Returns an array of all objects found within a given package

Parameters

Parameter

Description

Package

Package to search into

Results

Array to put the results

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

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