1
NGUI 3 Support / UILabel - BBCode turns itself off?
« on: August 06, 2015, 08:03:08 AM »
I'm trying to implement emoticons on UILabels (it's unfortunately a must these days for any app featuring chatting options), so...
I looked at the example scenes, which seem to work great, but when I tried to implement it using my own font (Bitmap font generated with BMFont) with some custom emoticons in the atlas... it doesn't work. Turns out BBCode turns itself off on scene load (??), for no reason that I can find.
Any idea of why this could be? My scene setup is as simple as it gets:
UIRoot
-Camera
-Sprite w/UIInput
-UILabel w/BBCode turned on (if I input some of the emoticon code in the editor it works in the editor, but turns itself off when I press Play).
What I would ideally like to do was offload the whole hassle to the OS, but I don't think that's possible (developing for Android and iOS), but if it is... any pointers are very welcome. Using Unity 4.6.3. Will probably migrate to Unity 5 at some point, but not for a while yet.
I looked at the example scenes, which seem to work great, but when I tried to implement it using my own font (Bitmap font generated with BMFont) with some custom emoticons in the atlas... it doesn't work. Turns out BBCode turns itself off on scene load (??), for no reason that I can find.
Any idea of why this could be? My scene setup is as simple as it gets:
UIRoot
-Camera
-Sprite w/UIInput
-UILabel w/BBCode turned on (if I input some of the emoticon code in the editor it works in the editor, but turns itself off when I press Play).
What I would ideally like to do was offload the whole hassle to the OS, but I don't think that's possible (developing for Android and iOS), but if it is... any pointers are very welcome. Using Unity 4.6.3. Will probably migrate to Unity 5 at some point, but not for a while yet.