StaticFindObject

Tries to find an object in memory.

Choose your operating system:

Windows

macOS

Linux

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

Syntax

UObject * StaticFindObject
(
    UClass * Class,
    UObject * InOuter,
    const TCHAR * Name,
    bool ExactClass
)

Remarks

Tries to find an object in memory. This will handle fully qualified paths of the form /path/packagename.object:subobject and resolve references for you.

Returns

Returns a pointer to the found object or nullptr if none could be found

Parameters

Parameter

Description

Class

The to be found object's class

InOuter

Outer object to look inside. If this is ANY_PACKAGE it will search all in memory packages, if this is null then InName should start with a package name

InName

The object path to search for an object, relative to InOuter

ExactClass

Whether to require an exact match with the passed in class