# How to get the screen X & Y (float or vector 2D)

**URL:** <https://forums.unrealengine.com/t/how-to-get-the-screen-x-y-float-or-vector-2d/467682>\
**Category:** Community & Industry Discussion\
**Tags:** float, unreal-engine, screen, question\
**Created:** [July 5, 2020, 10:41am UTC](https://forums.unrealengine.com/t/how-to-get-the-screen-x-y-float-or-vector-2d/467682 "2020-07-05T10:41:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MihaiM21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MihaiM21](https://forums.unrealengine.com/u/MihaiM21)\
**Post date:** [July 5, 2020, 10:41am UTC](https://forums.unrealengine.com/t/how-to-get-the-screen-x-y-float-or-vector-2d/467682/1 "2020-07-05T10:41:55Z")

</div>

Hello! I want to make a touch slide game and i need to get the screen X and Y . Can someone help me?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 5, 2020, 10:54am UTC](https://forums.unrealengine.com/t/how-to-get-the-screen-x-y-float-or-vector-2d/467682/2 "2020-07-05T10:54:16Z")

</div>

The screen XY of what? The viewport size, UI, projected world coordinates? Describe what you’re trying to do.

---

<div class="post-metadata">

**Author:** ![MihaiM21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MihaiM21](https://forums.unrealengine.com/u/MihaiM21)\
**Post date:** [July 5, 2020, 11:01am UTC](https://forums.unrealengine.com/t/how-to-get-the-screen-x-y-float-or-vector-2d/467682/3 "2020-07-05T11:01:57Z")

</div>

The viewport size. It is hard to explain what i want to do

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 5, 2020, 11:36am UTC](https://forums.unrealengine.com/t/how-to-get-the-screen-x-y-float-or-vector-2d/467682/4 "2020-07-05T11:36:08Z")

</div>

> The viewport size. It is hard to  
> explain what i want to do

![306267-annotation-2020-07-05-123535.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/b/a9bd297854204a34678b20a8246e39e9a24fa847.jpeg)
