Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - 10FingerArmy

Pages: [1]
NGUI 3 Support / Unity 5 Bugs
« on: October 30, 2014, 05:15:10 PM »
I imported my project into Unity 5.0b9. Some scripts in the NGUI samples have compile errors so I deleted them and then NGUI works. I have a weird effect though. All letters in my font are rotated, see screenshot below. Does anybody have an idea what could be the reason and what an easy way to fix this would be?

NGUI 3 Support / Elegant way for auto-adjusting box collider on button
« on: February 20, 2014, 01:01:48 PM »
Typically a button for me consists of a root gameobject with a UIButton in it, the collider and and event handler. As child objects there are sprites, animations etc.

How can I achieve that the collider on the root object resizes to fit around child images that make up the actual button? I often end up moving the collider and event logic down to the biggest child object which is totally counter intuitive and not easy to maintain. Or am I using it incorrectly?

I do have a UILabel with a box collider and activated auto-adjust in it's widget. This works fine in the editor. If I change the text at runtime though the collider does not change automatically. I have to call

text.GetComponent<UILabel>().text = "New Text";

to make it work which is unfortunate. Is there a way to have it resize automatically?

NGUI 3.4.9

Pages: [1]