How to get the screen size in pixels?

Hi, using the Screen Width/Height block, I get a dpi value, right? How can I get this value in pixels?
image
Assuming my device is 1080x1920. 1080 being the width. How can I get this value using blocks?

Create a horizontal or vertical arrangement on your screen and set the width as fill parent and height as 1 pixel so it won’t be noticeable on the user’s screen.

Using the Width block in the array, you won’t get the pixel size. Look:

Summary

image

However, when combining using the “Get Right Position” block of animations, you will be able to get the screen size.

Summary

image

4 Likes

Thanks, it was just what I needed!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.