Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: AeornFlippout on August 27, 2014, 05:31:51 PM
-
Our emoticons seem to be only showing up in our font with a square shape. Is this by design - or should we expect that the shape it would take in the label would match the aspect ratio of the source image?
-
You can adjust this by adjusting the padding of the sprite in question. Select the sprite in the atlas and tweak them to see the result right away.
-
Hmm, I'm not seeing that changing the padding affects the shape of the Emoticons, only the offset within the label and the overall size.
I'm also not seeing it update until I restart the game.
Is this a feature that only works with dynamic fonts or something?
-
It won't change the shape. The shape is whatever the sprite is. If you choose a rectangular shape, it will also be rectangular. Padding lets you control the spacing around the emoticon, which is what I meant.
The changes to the emoticon sprite should update the emoticons within text right away -- at least they do on my end (and I just double-checked to confirm).
-
Ahh - indeed you're right. It turns out I had a rogue transform scale on one of the objects in the hierarchy.
Sorry for the false alarm :(