# Moving the Editor Camera to a specific location or selected actor (fired by event/function)

**URL:** <https://forums.unrealengine.com/t/moving-the-editor-camera-to-a-specific-location-or-selected-actor-fired-by-event-function/1865279>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, editor\
**Created:** [May 20, 2024, 7:49pm UTC](https://forums.unrealengine.com/t/moving-the-editor-camera-to-a-specific-location-or-selected-actor-fired-by-event-function/1865279 "2024-05-20T19:49:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LilTeej](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LilTeej](https://forums.unrealengine.com/u/LilTeej)\
**Post date:** [May 20, 2024, 7:49pm UTC](https://forums.unrealengine.com/t/moving-the-editor-camera-to-a-specific-location-or-selected-actor-fired-by-event-function/1865279/1 "2024-05-20T19:49:42Z")

</div>

I was attempting to move the editor camera via Editor Utility Widgets, but I couldn’t figure out how to get a reference to the editor camera, or how to have it focus selected objects other than direct user input (similar to how you can press F in the editor to focus the selected actor).

I figured I’d leave some information for other people out there, since I couldn’t find much on what I was trying to do, and I found a solution.

**How to do it**  
You can take advantage of editor console commands, two of them in particular. Just execute a console command with one of the following:

- **camera align** - camera align simulates when you press F in the editor, and focuses selected actors.

- **bugitgo** - bugitgo allows you to move the editor camera to a specific location and rotation. Example: bugitgo 0 0 0 0 0 0 would move the camera to world position 0, 0, 0 with rotation 0, 0, 0

Hope it helps someone 🙂

---

<div class="post-metadata">

**Author:** ![SpaceCrew2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SpaceCrew2](https://forums.unrealengine.com/u/SpaceCrew2)\
**Post date:** [June 20, 2025, 2:42am UTC](https://forums.unrealengine.com/t/moving-the-editor-camera-to-a-specific-location-or-selected-actor-fired-by-event-function/1865279/2 "2025-06-20T02:42:44Z")

</div>

Thanks to you, I saved a lot of time!
