unreal.NaniteAssemblyStaticMeshBuilder

class unreal.NaniteAssemblyStaticMeshBuilder(outer: Object | None = None, name: Name | str = 'None')

Bases: NaniteAssemblyBuilder

Nanite Assembly Static Mesh Builder

C++ Source:

  • Plugin: NaniteAssemblyEditorUtils

  • Module: NaniteAssemblyEditorUtils

  • File: NaniteAssemblyStaticMeshBuilder.h

add_assembly_part(part_mesh, local_transform, material_merge_options=[0, NaniteAssemblyPartMaterialMerge.MERGE_IDENTICAL_MATERIALS, []]) bool

Adds an instance of the specified mesh to the assembly with the specified local transform

Parameters:
Return type:

bool

add_assembly_parts(part_mesh, local_transforms, material_merge_options=[0, NaniteAssemblyPartMaterialMerge.MERGE_IDENTICAL_MATERIALS, []]) bool

Adds instances of the specified mesh to the assembly with the specified local transforms

Parameters:
Return type:

bool

add_assembly_parts_from_component(part_component, origin_transform=[[0.000000, 0.000000, 0.000000], [-0.000000, 0.000000, 0.000000], [1.000000, 1.000000, 1.000000]], origin_object=None, material_merge_options=[0, NaniteAssemblyPartMaterialMerge.MERGE_IDENTICAL_MATERIALS, []]) bool

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.

Parameters:
Return type:

bool

classmethod begin_edit_static_mesh_assembly_build(base_mesh) NaniteAssemblyStaticMeshBuilder

Creates a Nanite Assembly Static Mesh builder to add assembly parts to the specified Static Mesh, or overwrite its assembly parts if it is an existing Nanite Assembly mesh.

Parameters:

base_mesh (StaticMesh)

Return type:

NaniteAssemblyStaticMeshBuilder

classmethod begin_new_static_mesh_assembly_build(parameters) NaniteAssemblyStaticMeshBuilder

Creates a Nanite Assembly Static Mesh builder to generate a new Static Mesh asset.

Parameters:

parameters (NaniteAssemblyCreateNewParameters)

Return type:

NaniteAssemblyStaticMeshBuilder

finish_assembly_build() StaticMesh or None

Finalizes the assembly build and returns the finished assembly mesh.

Returns:

out_static_mesh (StaticMesh):

Return type:

StaticMesh or None