create_align_actors_utility
Creates an Editor Utility Blueprint that aligns all selected actors to the X location of the first selected actor. Use it to quickly align multiple actors in the Unreal Editor.
Instructions
Create the AlignOnXAxis Editor Utility Blueprint from Ch. 19.
Creates BPU_AlignActors (ActorActionUtility) with an AlignOnXAxis function:
GetSelectionSet -> get array of selected actors
Get Location X of first actor (index 0)
ForEachLoop -> SetActorLocation X on each selected actor
Right-click multiple actors in the level -> Scripted Actor Actions -> AlignOnXAxis.
Args: name: Blueprint name folder_path: Content browser folder
KB: see knowledge_base/10_WORLD_BUILDING.md#overview Example: create_align_actors_utility()
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_align_actors_utility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | BPU_AlignActors | |
| folder_path | No | /Game/EditorUtilities |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |