ResolveName

Internal function that takes a fully qualified or relative object path string and converts it into a path relative to a package.

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

bool ResolveName
(
    UObject *& Outer,
    FString & ObjectsReferenceString,
    bool Create,
    bool Throw,
    uint32 LoadFlags,
    const FLinkerInstancingContext * InstancingContext
)

Remarks

Internal function that takes a fully qualified or relative object path string and converts it into a path relative to a package. Normally, you should call one of the FindObject or LoadObject functions instead.

Returns

True if the name was successfully resolved

Parameters

Parameter

Description

Outer

The package to search within. If null, ObjectsReferenceString be a globally scoped path and this will be filled in with the actual package if found/created

ObjectsReferenceString

The object path string to resolve. If it is successfully resolved, this will be replaced with a path relative to Outer

Create

If true, it will try to load or create the required package if it is not in memory

Throw

If true, it will potentially raise an error if the object cannot be found

LoadFlags

Flags to use if Create is true and it needs to load a package, from the ELoadFlags enum

InstancingContext

The linker instancing context used to resolve package name during instacning (i.e. when a package file is loaded into a package with a different name)

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