Hi all,
I’m trying to place some label elements over top of some game objects. This works fine when my Panel Settings Scale Mode is set to a Constant - but we want it set to “Scale With Screen Size”
This seems to mean that the coordinates returned from
Camera.WorldToScreenPoint(pTransform);
Are not accurate on screen unless I am in a set resolution. See video:
https://drive.google.com/file/d/1H2FgCDg-9QFKN_qcjoOdWYP9Kcjs9cAX/view?usp=sharing
(Sorry about the low quality, but you still see the required info)
I did find this thread with a solution (Issue with WorldToScreenPoint - Questions & Answers - Unity Discussions)
However this solution doesn’t work in UI Toolkit because there is no canvas.
I’ve also checked my UIDocument.PanelSettings.scale and it’s always 1.
Does anyone know the math, or how I can find out?
Thanks
EDIT: I forgot to post my PanelSettings:
