Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FBlueprintCompileReinstancer
Description
Attempts to copy as many properties as possible from the old object to the new. Use during BP compilation to copy properties from the old CDO to the new one.
| Name | CopyPropertiesForUnrelatedObjects |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Kismet2/KismetReinstanceUtilities.h |
| Include Path | #include "Kismet2/KismetReinstanceUtilities.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Kismet2/KismetReinstanceUtilities.cpp |
static void CopyPropertiesForUnrelatedObjects
(
UObject * OldObject,
UObject * NewObject,
bool bClearExternalReferences,
bool bForceDeltaSerialization,
bool bOnlyHandleDirectSubObjects,
TMap < UObject *, UObject * > * OldToNewInstanceMap,
const TMap < UClass *, UClass * > * OldToNewClassMap
)
Parameters
| Name | Remarks |
|---|---|
| OldObject | The old object to copy properties from |
| NewObject | The new Object to copy properties to |
| bClearExternalReferences | If true then attempt to replace references to old classes and instances on this object with the corresponding new ones |
| bForceDeltaSerialization | If true the delta serialization will be used when copying |
| bOnlyHandleDirectSubObjects | If true will only copy/handle immediate subobjects |
| OldToNewInstanceMap | If != null it will be used to replace any references found in this object |
| OldToNewClassMap | if != null it will be used to replace any class references found in this object |