unreal.PCGDynamicMeshData

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

Bases: PCGSpatialData

PCGDynamic Mesh Data

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGDynamicMeshData.h

Editor Properties: (see get_editor_property/set_editor_property)

  • dynamic_mesh (DynamicMesh): [Read-Only]

  • keep_zero_density_points (bool): [Read-Write]

  • materials (Array[MaterialInterface]): [Read-Only]

  • target_actor (Actor): [Read-Write] Recipient of any artifacts generated using this data.

property dynamic_mesh: DynamicMesh

[Read-Only]

Type:

(DynamicMesh)

k2_initialize(mesh, materials, can_take_ownership=False) None

Initialize the dynamic mesh data from an input dynamic mesh object. If the input dynamic mesh is not meant to be re-used after this initialization, you can set Can Take Ownership to true. Be careful as it will put the previous object in an invalid state. You can also pass an array of materials that correspond to the referenced materials in the dynamic mesh.

Parameters:
property materials: None

[Read-Only]

Type:

(Array[MaterialInterface])

set_materials(materials) None

Set Materials

Parameters:

materials (Array[MaterialInterface])