Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FOverridableSerializationLogic
Description
Method to determine whether the object should use its own instancing object graph e.g. during import. When importing hierarchies of objects with instanced sub-objects we don't want to use the instancing graph of our outer objects since we need our dedicated instances. For example:
A_CDO { SubObj } PastedObj { A_1{ SubObj_1 } A_2{ SubObj_1 } }
by sharing the instancing graph, we end up with both SubObj_1 being the same pointer by using a dedicated instancing graph, both SubObj_1 are newly created object pointer
| Name | ShouldUseDedicatedInstancingGraph |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/OverriddenPropertySet.h |
| Include Path | #include "UObject/OverriddenPropertySet.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/OverriddenPropertySet.cpp |
static bool ShouldUseDedicatedInstancingGraph
(
TNotNull< const UObject * > Object,
TOptional < bool > UsesOverrides
)
True if this object should use its own instancing object graph e.g. during import. Otherwise, false.
Parameters
| Name | Remarks |
|---|---|
| Object | The object that should be tested. |
| UsesOverrides | Whether the given object has or will have overrides enabled. If unset, this will be determined from the object itself. |