FLinkerLoad::RequestPlaceholderValue

Gives external code the ability to create FLinkerPlaceholderBase objects in place of loads that may violate the LOAD_DeferDependencyLoads state.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/LinkerLoad.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/Blueprint/BlueprintSupport.cpp

Syntax

UObject * RequestPlaceholderValue
(
    UClass * ObjectType,
    const TCHAR * ObjectPath
)

Remarks

Gives external code the ability to create FLinkerPlaceholderBase objects in place of loads that may violate the LOAD_DeferDependencyLoads state. This will only produce a placeholder if LOAD_DeferDependencyLoads is set for this linker.

For now, this will only produce UClass placeholders, as that is the only type we've identified needing.

Returns

A FLinkerPlaceholderBaseUObject that can be used in place of the import dependency.

Parameters

Parameter

Description

ObjectType

The expected type of the object you want to defer loading of.

ObjectPath

The full object/package path for the expected object.

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