Navigation
API > API/Plugins > API/Plugins/CustomizableObject > API/Plugins/CustomizableObject/MuCO
References
| Module | CustomizableObject |
| Header | /Engine/Plugins/Experimental/Mutable/Source/CustomizableObject/Classes/MuCO/CustomizableObjectStreamedResourceData.h |
| Include | #include "MuCO/CustomizableObjectStreamedResourceData.h" |
Syntax
USTRUCT ()
struct FCustomizableObjectStreamedResourceData
Remarks
Used to store resource data that can be streamed in and out from an external package.
This allows you to load large resource 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< UCustomizableObjectResourceDataContainer >& 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 FCustomizableObjectResourceData & | Returns the data, as long as it's loaded.If the data isn't loaded, an assertion will fail. | ||
| const TSoftObjectPtr< UCustomizableObjectResourceDataContainer > & | 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 UCustomizableObjectResourceDataContainer* LoadedContainer |
||
| void | Unload () |
Release this struct's hard reference to the loaded data. |