get_ism_instance_info
Count instances in an InstancedStaticMeshComponent or read one instance's transform and custom data floats, verified in-editor without PIE.
Instructions
Count the instances in an InstancedStaticMeshComponent, or read one instance's transform (location / rotation / scale) and per-instance custom data floats. Two modes from one call: omit instance_index for COUNT mode (num_instances + num_custom_data_floats -- the oracle for "did my scatter actually place anything"), pass it for per-instance mode. Reads the component in the editor world, so it needs no PIE.
Returns: count mode { num_instances: int, num_custom_data_floats: int } or instance mode { instance_index: int, num_instances: int, world_space: bool, location: [x,y,z], rotation: [pitch,yaw,roll], scale: [x,y,z], custom_data: [float], num_custom_data_floats: int }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor_name | Yes | Display label or internal name of the actor carrying the ISM component (required) | |
| world_space | No | Optional; if true, transform is returned in world space (default true) | |
| component_name | No | Optional ISM component name (defaults to the first one on the actor) | |
| instance_index | No | Optional; absent -> count mode; present and >=0 -> per-instance mode (must be a valid index) |