Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

"Rect" of button shows wildly different X,Y coordinates in build

$
0
0
When I run the game in editor doing:

button.GetComponent<RectTransform>().rect

give me what appear to be "valid" coordinates for the X/Y coordinates of the button (something like 71, 22). However, when I run the game as a build, the X/Y coordinates return as something like -80, -410.

Any clue why this might be happening?

Thanks!

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>