Hello RhythmScript,
I have a couple of quick questions for you. This will help get us on the same page.
Quick questions:
- Where do you have your anchor set for the widget that you are trying to place?
- When you are running the game did you do so in a stand alone version or did you run it in the viewport?
- What exactly are you trying to accomplish with the math I provided? If I have a better understanding of your end goal I may be able to provide a different solution to the issue.
I have a few images that explain how anchor points can also be helpful in placing items on screen. This may be a viable solution depending on your situation.