Navigation
API > API/Plugins > API/Plugins/NaniteAssemblyEditorUtils > API/Plugins/NaniteAssemblyEditorUtils/UNaniteAssemblyStaticMeshBuilder
Description
Adds the meshes, materials, and instances of the specified component to the assembly. If an origin object is specified, all instance transforms of the component will be made relative to that object's world transform, and OriginTransform will be considered relative to the origin object's world-space transform.
| Name | AddAssemblyPartsFromComponent |
| Type | function |
| Header File | /Engine/Plugins/Experimental/NaniteAssemblyEditorUtils/Source/NaniteAssemblyEditorUtils/Public/NaniteAssemblyStaticMeshBuilder.h |
| Include Path | #include "NaniteAssemblyStaticMeshBuilder.h" |
| Source | /Engine/Plugins/Experimental/NaniteAssemblyEditorUtils/Source/NaniteAssemblyEditorUtils/Private/NaniteAssemblyStaticMeshBuilder.cpp |
UFUNCTION (BlueprintCallable, Category="Assembly Parts",
Meta=(ReturnDisplayName="Success", AutoCreateRefTerm="OriginTransform, MaterialMergeOptions"))
bool AddAssemblyPartsFromComponent
(
const UStaticMeshComponent * PartComponent,
const FTransform & OriginTransform,
const USceneComponent * OriginObject,
const FNaniteAssemblyMaterialMergeOptions & MaterialMergeOptions
)