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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback