set_camera_transform
Update an existing camera's world location and rotation in Unreal Engine 5 to reposition or reorient it without recreating the actor.
Instructions
Update the location and/or rotation of an existing camera.
Returns: { camera_name: string, transform_set: bool, location_set: bool, rotation_set: bool, actual_location: [number, number, number], actual_rotation: [number, number, number] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | No | Optional new [X, Y, Z] world location; if omitted, location is preserved | |
| 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 new [Pitch, Yaw, Roll] world rotation; if omitted, rotation is preserved | |
| camera_name | Yes | Name of the camera to modify (matches actor name or label). |