spawn_decal_actor
Creates or reuses a DecalActor in the editor world and assigns an optional material and size.
Instructions
Spawns a DecalActor into the editor world. If material_path loads as a UMaterialInterface it is assigned to the UDecalComponent (SetDecalMaterial). Size may be a uniform number or an [x, y, z] half-extent applied to DecalSize (read back).
Returns: { actor_label: string, actor_name: string, reused: bool, decal_size_x: float, decal_size_y: float, decal_size_z: float, decal_material: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | No | Optional [x, y, z] world location (default 0,0,0). | |
| 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. Optional [pitch, yaw, roll] world rotation. | |
| decal_size | No | Optional [x, y, z] half-extent for DecalSize (default 128,256,256). | |
| actor_label | Yes | Label for the spawned (or re-used) ADecalActor. | |
| material_path | No | Optional content path of a UMaterialInterface to assign to the decal. |