- Home /
Screen scaling causing text to be outside button
Hi everyone, I have a button that has a child which is a text acting as a play button (Text Mesh Pro). When building to my phone the text shifts positions to be outside the button despite having the same anchors. It looks fine when running it through unity remote but on build it moves. I have my canvas set to scale with screen size. A simple work around would be to bake the text into the button as a single sprite/png but it would be nice to know how to properly solve this (and for anyone that may need the text to have an attached script).
Note: I know that the problem lies in my device being 480x854 instead of 480x800. Cheers,
AP
Comment