UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FLinkerPlaceholderObjectImpl Class Reference

Static Public Member Functions

static int32 ResolvePlaceholderValues (const TArray< FFieldVariant > &PropertyChain, int32 ChainIndex, uint8 *ValueAddress, UObject *OldValue, UObject *ReplacementValue)
 
static UObjectFindPlaceholderContainer (const FLinkerPlaceholderBase::FPlaceholderValuePropertyPath &PropertyChainRef)
 
static voidFindRawPlaceholderContainer (const FLinkerPlaceholderBase::FPlaceholderValuePropertyPath &PropertyChainRef)
 

Member Function Documentation

◆ FindPlaceholderContainer()

UObject * FLinkerPlaceholderObjectImpl::FindPlaceholderContainer ( const FLinkerPlaceholderBase::FPlaceholderValuePropertyPath &  PropertyChainRef)
static

Uses the current FPlaceholderContainerTracker::PerspectiveReferencerStack to search for a viable placeholder container (expected that it will be the top of the stack).

Parameters
PropertyChainRefDefines the nested property path through a UObject, where the end leaf property is one left referencing a placeholder.
Returns
The UObject instance that is assumably referencing a placeholder (null if one couldn't be found)

◆ FindRawPlaceholderContainer()

void * FLinkerPlaceholderObjectImpl::FindRawPlaceholderContainer ( const FLinkerPlaceholderBase::FPlaceholderValuePropertyPath &  PropertyChainRef)
static

◆ ResolvePlaceholderValues()

int32 FLinkerPlaceholderObjectImpl::ResolvePlaceholderValues ( const TArray< FFieldVariant > &  PropertyChain,
int32  ChainIndex,
uint8 ValueAddress,
UObject OldValue,
UObject ReplacementValue 
)
static

A recursive method that replaces all leaf references to this object with the supplied ReplacementValue.

This function recurses the property chain (from class owner down) because at the time of AddReferencingPropertyValue() we cannot know/record the address/index of array properties (as they may change during array re-allocation or compaction). So we must follow the property chain and check every container (array, set, map) property member for references to this (hence, the need for this recursive function).

Parameters
PropertyChainAn ascending outer chain, where the property at index zero is the leaf (referencer) property.
ChainIndexAn index into the PropertyChain that this call should start at and iterate DOWN to zero.
ValueAddressThe memory address of the value corresponding to the property at ChainIndex.
OldValue
ReplacementValueThe new object to replace all references to this with.
Returns
The number of references that were replaced.

The documentation for this class was generated from the following file: