You need to use NGUITools.AddChild(parent, prefab).
i mean the Upgrade() function in UISlider script, the Direction.Upgraded never been stored back to the prefab, it will always set as 1 after Upgrade().
and, i will use NGUITools.AddChild then, thanks.
Title: Re: UISlider Bug!?
Post by: rain on March 04, 2014, 08:37:46 AM
Try dragging the prefab into the scene, enabling and disabling the slider script and then saving the prefab. I suppose your UISlider instance is still stuck in 'legacy mode'.
Title: Re: UISlider Bug!?
Post by: ArenMook on March 05, 2014, 07:45:19 AM
Yeah sounds like it is. What rain suggested should do the trick. Be sure to Apply the changes on the prefab after it's in the scene.
Title: Re: UISlider Bug!?
Post by: gyd on March 05, 2014, 11:18:23 AM