Author Topic: Why UISlider is not empty when 0?  (Read 4802 times)

fanling3

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 29
    • View Profile
Why UISlider is not empty when 0?
« on: March 31, 2014, 09:05:27 PM »
It leaves the border when UISlider value = 0, for sliced sprite. This happens in Example 0 - Contrl Widgets with element "Control - Simple Progress Bar".

I am using NGUI 3.5.5, thanks.

kittikun

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 5
  • Posts: 46
    • View Profile
Re: Why UISlider is not empty when 0?
« Reply #1 on: March 31, 2014, 10:06:59 PM »
I asked the same question a couple of weeks ago, the only work around right now it to handle it by script..

psngui

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: Why UISlider is not empty when 0?
« Reply #2 on: September 23, 2014, 07:20:41 PM »
We're experiencing the same problem. We use the same prefab. NGUI's version is 3.6.0.

There is a UIProgressBar class, which is the base class of UISlider. I'm wondering why the progress bar is made with UISlider rather than UIProgressBar.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Why UISlider is not empty when 0?
« Reply #3 on: September 24, 2014, 01:15:56 PM »
You need to update your NGUI.