align_actors
Snap two or more Unreal Editor actors to a shared location, rotation, or scale from a chosen reference in one undoable step, useful for straightening hand-placed rows or sharing prop orientation.
Instructions
Snap two or more editor-world actors onto a shared location, rotation and/or scale taken from a reference (the first, the last, their average, or a named actor). Use it to straighten a hand-placed row or make a set of props share an orientation, in one undoable step; batch_set_actor_transform is the tool when each actor needs a DIFFERENT transform. WARNING: aligning "location" collapses them onto the same point -- for a row, align only rotation/scale and set positions yourself.
Returns: { aligned_count: int, align_type: string, reference: string, aligned_actors: [actor JSON] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reference | No | Where the target values come from: "first" (default), "last", "average" (the componentwise mean of all of them), or the internal name of one of the listed actors. | |
| align_type | No | "location" (default), "rotation", "scale" or "all" -- which transform components get copied from the reference. | |
| actor_names | Yes | Array of at least 2 INTERNAL actor names (GetName) in the editor world; fewer is an error, and editor labels do not resolve. |