If you place UIPadding inside of a TextBox and set PaddingLeft to (0,16) you see that on PC your text is now shifted 16 pixels to the right as you begin typing into the TextBox. In our game that looks like this:
However the same code/UI on iOS and Android looks like this:
This is still an issue with each instance of TextBox + UIPadding and a mobile device. I want to add a few infos, as they haven’t been mentioned yet.
Using the PlaceholderText property with a UIPadding works. Even on mobile. That means the UIPadding DOES get rendered on mobile.
But when it comes to focusing the TextBox and giving user input, the bug occurs. If you change the Text property of the TextBox through a script, the padding is respected, even on mobile.
As soon as the TextBox is focused, the UIPadding stops being respected and the text changes its position. That means if a mobile user types something into the TextBox and unfocuses that TextBox, the typed in Text now moves to the position the UIPadding tells it to, acknowledging the UIPadding instance.
That means this bug only occurs while the TextBox is actively being focused on a mobile device. It happens both on iOS and iPadOS and as OP said, Android too.
This bug report has been untouched for almost a year but I didn’t want to create a duplicate report. Maybe the additional information can aid in finally getting the attention this bug report needs and lead it to being fixed.