Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject > API/Runtime/CoreUObject/UObject/StaticFindObjectSafe
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include | #include "UObject/UObjectGlobals.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp |
UObject * StaticFindObjectSafe
(
UClass * Class,
FTopLevelAssetPath ObjectPath,
bool ExactClass
)
Remarks
Tries to find an object in memory. This version uses FTopLevelAssetPath to find the object. Version of StaticFindObject that will not assert on GIsSavingPackage or IsGarbageCollectingAndLockingUObjectHashTables() Returns a pointer to the found object or nullptr if none could be found
Parameters
| Name | Description |
|---|---|
| Class | The to be found object's class |
| ObjectPath | FName pair representing the outer package object and the inner top level object (asset) |
| ExactClass | Whether to require an exact match with the passed in class |