Navigation
API > API/Plugins > API/Plugins/CustomizableObject > API/Plugins/CustomizableObject/UCustomizableObjectExtension
Description
Non-owned references to private UObjects must be converted to owned references at cook time. Duplicate the private UObjects with the container as its new outer object, or the cook will fail to serialize them.
E.g. Any UObjects that are referenced by the Extension Data that aren't in their own asset package should be copied with the Container as their Outer. This ensures that they get cooked into the correct package for streaming.
| Name | MovePrivateReferencesToContainer |
| Type | function |
| Header File | /Engine/Plugins/Mutable/Source/CustomizableObject/Public/MuCO/CustomizableObjectExtension.h |
| Include Path | #include "MuCO/CustomizableObjectExtension.h" |
virtual void MovePrivateReferencesToContainer
(
FInstancedStruct & Struct,
UObject * Container
) const
Parameters
| Name | Remarks |
|---|---|
| Struct | Instanced struct of unknown type that could hold external private references. |
| Container | Outer UObject for duplicated private references. |