Page MenuHomeFeedback Tracker

Cannot get widget screen dimensions with GetScreenSize, or position with GetScreenPos
Closed, ResolvedPublic

Description

It doesnt matter where I place my widget, GetScreenSize and GetScreenPos always give me 0 0. Is this functionality currently not working? The engine clearly knows the width and height of the widget (I can see the widget in front of my face!) but the mentioned functions do not return it.

The only reason I am using Major severity is that it prevents me from working on my project. Feel free to change it to more appropriate severity of course.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Category
General
Steps To Reproduce
  1. Create some widgets
  2. Use Widget.GetScreenSize...

Event Timeline

Update here I was calling GetScreenSize too early - in HandlerAttached. Calling it in OnUpdate eventually gave me correct size.

Geez closed this task as Resolved.Aug 1 2024, 11:35 AM
Geez claimed this task.