Navigation
API > API/Plugins > API/Plugins/CineAssemblyToolsEditor > API/Plugins/CineAssemblyToolsEditor/FCinematicProduction
Description
Attempts to find Extended Data of the given type, loading it if required and updating the data in the production. If the data is already loaded, then the existing data is returned and not loaded.
The given Struct type must have been registered with ICineAssemblyToolsEditorModule as a ProductionExtension.
To modify the returned FInstancedStruct and ensure that it is correctly re-exported back into the production after modification so that it is correctly saved into the config, use FScopedModifyProductionExtendedData.
e.g.
if(FInstancedStruct*Data=Production.FindOrLoadExtendedData(*FMyStruct::StaticStruct())){FScopedModifyProductionExtendedDataModifyGuard(Production,FMyStruct::StaticStruct());FMyStruct&MyStructRef=Data->GetMutable();...//ModifyMyStructRef...}
Returns a pointer to the loaded struct or nullptr if the type is not registered with ICineAssemblyToolsEditorModule. The returned pointer is only valid until the next allocation of ExtendedData.
| Name | FindOrLoadExtendedData |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/CinematicAssemblyTools/Source/CineAssemblyToolsEditor/Public/ProductionSettings.h |
| Include Path | #include "ProductionSettings.h" |
| Source | /Engine/Plugins/VirtualProduction/CinematicAssemblyTools/Source/CineAssemblyToolsEditor/Private/ProductionSettings.cpp |
FInstancedStruct * FindOrLoadExtendedData
(
const UScriptStruct & ForStruct
)