unreal.GeometryScript_AssetUtils
¶
- class unreal.GeometryScript_AssetUtils(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibrary
Although the class name indicates StaticMeshFunctions, that was a naming mistake that is difficult to correct. This class is intended to serve as a generic asset utils function library. The naming issue is only visible at the C++ level. It is not visible in Python or BP.
C++ Source:
Plugin: GeometryScripting
Module: GeometryScriptingCore
File: MeshAssetFunctions.h
- classmethod copy_mesh_from_skeletal_mesh(from_skeletal_mesh_asset, to_dynamic_mesh, asset_options, requested_lod, debug=None) -> (DynamicMesh, outcome=GeometryScriptOutcomePins)¶
Extracts a Dynamic Mesh from a Skeletal Mesh Asset.
- Parameters:
from_skeletal_mesh_asset (SkeletalMesh) –
to_dynamic_mesh (DynamicMesh) –
asset_options (GeometryScriptCopyMeshFromAssetOptions) –
requested_lod (GeometryScriptMeshReadLOD) –
debug (GeometryScriptDebug) –
- Returns:
outcome (GeometryScriptOutcomePins):
- Return type:
- classmethod copy_mesh_from_static_mesh(from_static_mesh_asset, to_dynamic_mesh, asset_options, requested_lod, debug=None) -> (DynamicMesh, outcome=GeometryScriptOutcomePins)¶
Extracts a Dynamic Mesh from a Static Mesh Asset.
- Parameters:
from_static_mesh_asset (StaticMesh) –
to_dynamic_mesh (DynamicMesh) –
asset_options (GeometryScriptCopyMeshFromAssetOptions) –
requested_lod (GeometryScriptMeshReadLOD) –
debug (GeometryScriptDebug) –
- Returns:
outcome (GeometryScriptOutcomePins):
- Return type:
- classmethod copy_mesh_to_skeletal_mesh(from_dynamic_mesh, to_skeletal_mesh_asset, options, target_lod, debug=None) -> (DynamicMesh, outcome=GeometryScriptOutcomePins)¶
Updates a Skeletal Mesh Asset with new geometry and bone weights data from a Dynamic Mesh.
- Parameters:
from_dynamic_mesh (DynamicMesh) –
to_skeletal_mesh_asset (SkeletalMesh) –
options (GeometryScriptCopyMeshToAssetOptions) –
target_lod (GeometryScriptMeshWriteLOD) –
debug (GeometryScriptDebug) –
- Returns:
outcome (GeometryScriptOutcomePins):
- Return type:
- classmethod copy_mesh_to_static_mesh(from_dynamic_mesh, to_static_mesh_asset, options, target_lod, debug=None) -> (DynamicMesh, outcome=GeometryScriptOutcomePins)¶
Updates a Static Mesh Asset with new geometry converted from a Dynamic Mesh.
- Parameters:
from_dynamic_mesh (DynamicMesh) –
to_static_mesh_asset (StaticMesh) –
options (GeometryScriptCopyMeshToAssetOptions) –
target_lod (GeometryScriptMeshWriteLOD) –
debug (GeometryScriptDebug) –
- Returns:
outcome (GeometryScriptOutcomePins):
- Return type:
- classmethod get_section_material_list_from_static_mesh(from_static_mesh_asset, requested_lod, debug=None) -> (material_list=Array[MaterialInterface], material_index=Array[int32], outcome=GeometryScriptOutcomePins)¶
Extracts the Material List and corresponding Material Indices from the specified LOD of the Static Mesh Asset.
- Parameters:
from_static_mesh_asset (StaticMesh) –
requested_lod (GeometryScriptMeshReadLOD) –
debug (GeometryScriptDebug) –
- Returns:
material_list (Array[MaterialInterface]):
material_index (Array[int32]):
outcome (GeometryScriptOutcomePins):
- Return type:
tuple