I’m trying to get the x,y of the viewport on my phone screen so that I can tell which section of the screen is being touched by the player. I would like to split the screen in half so that I can do something different if I touch the left half of the screen vs the right half.
I have tried using Get Viewport Size for both Viewport and HUD (Using blueprints). Both of these work if I’m using the mouse on my computer, but if I launch (or build and install) the game on my android phone “Get Viewport Size” always returns 0 for both x and y. I can capture the touch input and tell the location on my phone, but I want to be able to have it be half the screen regardless of which phone is being used. Am I missing something super simple?