Navigation
API > API/Plugins > API/Plugins/CineAssemblyToolsEditor > API/Plugins/CineAssemblyToolsEditor/UCineAssemblyEditorFunctionLibra-
Description
Adds a new template SubAssembly track and section to a Schema's template sequence. When an Assembly is created from this Schema, a new sequence will be initialized from the provided template object.
| Name | AddSubAssemblyTemplate |
| 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")
static UMovieSceneSubAssemblySection * AddSubAssemblyTemplate
(
UCineAssemblySchema * Schema,
ESubAssemblyTrackType TrackType,
const FString & SubAssemblyName,
FName Label,
const FString & RelativePath,
UPARAM(meta=(AllowedClasses="/Script/LevelSequence.LevelSequence, /Script/CineAssemblyTools.CineAssembly, /Script/CineAssemblyTools.CineAssemblySchema")) UObject * TemplateObject
)
The new SubAssemblySection, or null if creation failed
Parameters
| Name | Remarks |
|---|---|
| Schema | The schema whose template sequence will be modified |
| TrackType | Whether this SubAssembly represents a Shot track or Subsequence track |
| SubAssemblyName | The name for the new SubAssembly sequence |
| Label | The semantic label for the new section. If None (default), a unique default label is auto-assigned. |
| RelativePath | The path (relative to the assembly root) where the new SubAssembly should be created |
| TemplateObject | The template object (UCineAssemblySchema, UCineAssembly, or ULevelSequence) to use when initializing the SubAssembly |