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.


Messages - hazzy

Pages: [1]
1
NGUI 3 Support / Re: Progress bar not reflecting value
« on: March 17, 2014, 11:15:52 AM »
UIProgressBar.cs > line 115 (public float value) > in the setter, try changing the float value in
if (Mathf.Abs(before - this.value) > 0.001f)
to a value that's lower, like 0.0001f

I'm not sure how this will affect other NGUI components or even if it's a good fix, but it fixed my jerky slider issue.

Basically this happens when the change in value is too small to warrant an update. The slider waits until the delta is big enough and then jerks to the new position.

2
NGUI 3 Support / Re: Scene loading progress bar
« on: March 10, 2014, 04:17:49 PM »
You have to get a reference to YOUR progress bar in the scene. Then you can then set the .value property of that progress bar.

You're trying to set a value on a static reference to UIProgressBar from UIProgressBar itself, which may or may not be null at that point. Either way, don't do it like that.

3
Same thing is happening to me.

4
NGUI 3 Support / Re: UIButton stops responding after NGUITools.AddChild
« on: February 07, 2013, 10:19:28 AM »
Thanks! Worked like a charm. The Grid GameObject was moved to DefaultLayer instead of my NGUI layer and moving it back worked perfectly.

5
NGUI 3 Support / UIButton stops responding after NGUITools.AddChild
« on: February 06, 2013, 09:23:53 PM »
Hey all,

I have a UIDraggable panel with a UIGrid that has UIButtons added and removed from it based on certain events.

I have made a prefab that contains everything I want from that button (background, text label, sprite checkbox, etc). This prefab works perfectly if I drag it by hand to the grid in my scrollable panel. However, when I add it using NGUITools.AddChild and pass the grid and the prefab name, the button simply stops working. Hover/pressed colors don't change, OnClick() doesn't fire, etc. Is there a workaround for this or am I missing something?

Thanks in advance.

Pages: [1]