spawn_dynamic_mesh_actor
Creates an empty dynamic mesh actor in the Unreal Editor world at an optional location and rotation, ignoring collisions, in an undoable transaction. Returns actor details including name and triangle count.
Instructions
Spawn an empty ADynamicMeshActor into the editor world (not PIE) at an optional location and rotation, ignoring collisions, in an undoable transaction. Returns the label of the new actor as actor_name, its internal name and triangle_count (0). Remove it with remove_dynamic_mesh_actor.
Returns: { actor_name: string, actor_internal_name: string, actor_class: string, has_dynamic_mesh_component: bool, has_dynamic_mesh: bool, triangle_count: int, spawned: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | No | World location [x, y, z] in cm (default the world origin). | |
| rotation | No | PREFERRED: the OBJECT {"roll":R,"pitch":P,"yaw":Y} (any subset, absent axes are 0). The ARRAY form below is [pitch, yaw, roll] -- its index 2 is ROLL, NOT yaw, which once put a PlayerStart on its side. World rotation in degrees as [pitch, yaw, roll] (default no rotation). |