Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FObjectInstancingGraph
Description
Adds an object instance to the map of source objects to their instances of the outer chain already instanciated as part of prepopulation. We use this to pre-create the instantiation graph when subobject are re-instantiated If there is already a mapping for this object, it will be replaced and the value corresponding to ObjectInstance's archetype will now point to ObjectInstance.
| Name | PrepopulateWithInstance |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h |
| Include Path | #include "UObject/Class.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/CoreNative.cpp |
void PrepopulateWithInstance
(
TNotNull< UObject * > ObjectInstance,
TNotNull< UObject * > InArchetype
)
Parameters
| Name | Remarks |
|---|---|
| ObjectInstance | the object that should be added as the corresopnding instance for ObjectSource |
| InArchetype | Archetype of ObjectInstance |