Navigation
API > API/Plugins > API/Plugins/CustomizableObject > API/Plugins/CustomizableObject/MuCO
References
| Module | CustomizableObject |
| Header | /Engine/Plugins/Experimental/Mutable/Source/CustomizableObject/Classes/MuCO/CustomizableObjectStreamedExtensionData.h |
| Include | #include "MuCO/CustomizableObjectStreamedExtensionData.h" |
Syntax
USTRUCT&40;&41;
struct FCustomizableObjectStreamedExtensionData
Remarks
Used to store extension data that can be streamed in and out from an external package.
This allows you to load large extension data on demand, instead of having it always loaded.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Streamed data can only be constructed in the editor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ConvertToSoftReferenceForCooking
(
const TSoftObjectPtr< UCustomizableObjectExtensionDataContainer >& NewContainerPath |
Clears the hard reference to the container, so that it's not forced to load as soon as this struct is loaded, and replaces the soft reference with the provided one. | |
| const FCustomizableObjectExtensionData & | Returns the data, as long as it's loaded.If the data isn't loaded, an assertion will fail. | ||
| const TSoftObjectPtr< UCustomizableObjectExtensionDataContainer > & | GetPath () |
To stream this data in, load the object at the path returned by GetPath and then pass it into NotifyLoaded. | |
| bool | IsLoaded () |
If this returns true, GetLoadedData can safely be called. | |
| void | NotifyLoaded
(
const UCustomizableObjectExtensionDataContainer* LoadedContainer |
||
| void | Unload () |
Release this struct's hard reference to the loaded data. |