add_instanced_static_mesh_component
Attach an InstancedStaticMeshComponent to an editor-world actor to scatter many copies of a static mesh. Idempotent: returns existing ISM if already present, avoiding duplicate additions.
Instructions
Attach an InstancedStaticMeshComponent (ISM) to a placed editor-world actor so you can then scatter many copies of one static mesh through it with add_ism_instance. Idempotent: if the actor already has an ISM it returns that one with already_existed=true instead of adding a second. This is the working alternative to the foliage scatter tools, which crash the editor in this build.
Returns: { actor_name: string, component_name: string, component_class: string, num_instances: int, already_existed: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor_name | Yes | Display label or internal name of the target editor-world actor (required) | |
| static_mesh_path | No | Optional /Game/... path to a UStaticMesh asset (defaults to engine cube if absent) |