Navigation
API > API/Plugins > API/Plugins/CineAssemblyToolsEditor > API/Plugins/CineAssemblyToolsEditor/UCineAssemblyEditorFunctionLibra-
Description
Create a new CineAssembly asset using the input Schema, Level, and Metadata. It is important that any metadata required for resolving asset naming tokens is provided to this function so that the Assembly and SubAssemblies are all named correctly.
| Name | CreateAssembly |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/CinematicAssemblyTools/Source/CineAssemblyToolsEditor/Public/CineAssemblyEditorFunctionLibrary.h |
| Include Path | #include "CineAssemblyEditorFunctionLibrary.h" |
| Source | /Engine/Plugins/VirtualProduction/CinematicAssemblyTools/Source/CineAssemblyToolsEditor/Private/CineAssemblyEditorFunctionLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Cine Assembly Tools", Meta=(AutoCreateRefTerm="Metadata"))
static UCineAssembly * CreateAssembly
(
UCineAssemblySchema * Schema,
TSoftObjectPtr< UWorld > Level,
TSoftObjectPtr< UCineAssembly > ParentAssembly,
const TMap< FString, FString > & Metadata,
const FString & Path,
const FString & NameOverride
)
The newly created assembly, or nullptr if creation failed
Parameters
| Name | Remarks |
|---|---|
| Schema | The schema to initialize the new assembly from |
| Level | Optional Level to associate with the new assembly |
| ParentAssembly | Optional parent assembly reference |
| Metadata | Optional metadata overrides to apply to the assembly (key/value string pairs) |
| Path | The content browser path where the assembly should be created |
| NameOverride | Optional name for the assembly. If empty, the default name defined by the schema is used. |