# viewport screen location to world location in editor

**URL:** <https://forums.unrealengine.com/t/viewport-screen-location-to-world-location-in-editor/1686550>\
**Category:** Editor Scripting\
**Tags:** unreal-engine\
**Created:** [February 13, 2024, 5:48pm UTC](https://forums.unrealengine.com/t/viewport-screen-location-to-world-location-in-editor/1686550 "2024-02-13T17:48:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![candyflip97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@candyflip97](https://forums.unrealengine.com/u/candyflip97)\
**Post date:** [February 13, 2024, 5:48pm UTC](https://forums.unrealengine.com/t/viewport-screen-location-to-world-location-in-editor/1686550/1 "2024-02-13T17:48:52Z")

</div>

Is there any way I can map the viewport screen position to world coordinates in the editor? it sounds so simple but I can’t find any source.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 13, 2024, 8:40pm UTC](https://forums.unrealengine.com/t/viewport-screen-location-to-world-location-in-editor/1686550/2 "2024-02-13T20:40:58Z")

</div>

How about?

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/9/2c92f18c06eaedf4e300e27949b7641a306a8156.jpeg "WTF Is? Convert Mouse Location to World Space in Unreal Engine 4 ( UE4 )") ](https://www.youtube.com/watch?v=b1_efR9hrT4)

---

<div class="post-metadata">

**Author:** ![candyflip97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@candyflip97](https://forums.unrealengine.com/u/candyflip97)\
**Post date:** [February 13, 2024, 9:08pm UTC](https://forums.unrealengine.com/t/viewport-screen-location-to-world-location-in-editor/1686550/3 "2024-02-13T21:08:06Z")

</div>

This is for runtime. I wanna do it in editor viewport.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 13, 2024, 9:14pm UTC](https://forums.unrealengine.com/t/viewport-screen-location-to-world-location-in-editor/1686550/4 "2024-02-13T21:14:35Z")

</div>

I don’t think you can do that from blueprint at the moment 🫠

---

<div class="post-metadata">

**Author:** ![candyflip97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@candyflip97](https://forums.unrealengine.com/u/candyflip97)\
**Post date:** [February 13, 2024, 9:16pm UTC](https://forums.unrealengine.com/t/viewport-screen-location-to-world-location-in-editor/1686550/5 "2024-02-13T21:16:22Z")

</div>

is it possible to do it c++?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 13, 2024, 9:18pm UTC](https://forums.unrealengine.com/t/viewport-screen-location-to-world-location-in-editor/1686550/6 "2024-02-13T21:18:52Z")

</div>

Maybe this?

[https://www.reddit.com/r/unrealengine/comments/fadyl4/help\_mouse\_to\_world\_in\_editor\_editor\_utility/](https://www.reddit.com/r/unrealengine/comments/fadyl4/help_mouse_to_world_in_editor_editor_utility/)
