FindObject

Find an optional object.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h

Include

#include "UObject/UObjectGlobals.h"

Syntax

template<class T>
T * FindObject
(
    UObject * Outer,
    const TCHAR * Name,
    bool ExactClass
)

Remarks

Find an optional object.

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

See Also

StaticFindObject()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.

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