I wanna get the size of the player screen. Using “get viewport size” works well as long as we’re not using splitscreen. After switching to splitscreen it still returns the size of the entire viewport but I just want a particular player’s screen size. Using Blueprints. Thanks in advance
You can get the Player Screen size by getting the ‘Player Screen Widget Geometry’ or Cached Geometry (when inside a widget) then call Get Absolute Size.
If you would like to get the center of a player screen you would instead get the local size (divided by 2) and convert local to viewport.
2 Likes
Hey! That works like a charm! Thanks a lot! I was doing it inside an actor instead of a widget so the “Get player screen widget geometry” works well for me
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.