Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Teonnyn on November 07, 2012, 03:33:18 AM
-
I know this question has been asked before but I'm utterly stumped. I have two panels I'd like to fade in and out and switch, but I can't figure out how to do multiple types of widgets, custom or not. For example, one panel is a story panel. UISprite and UILabel. The other panel has several UISprites, UILabels, and a Progress Bar as well as a custom widget for inventory.
I don't want to do a hard snap because that never looks all that good when you're dealing with story elements. The goal is to fade in AND out using alpha.
-
UIPanelAlpha (http://tasharen.com/ngui/docs/class_u_i_panel_alpha.html).
-
How do you use UIPanelAlpha?
-
Attach it to your panel, change the alpha value.
-
I've been trying that but not entirely sure what to use to change it within code. I did attempt an animation using the UI animation editor, but it only faded part in before stopping at a ghostly transparent stage.
-
I don't believe it. The simplest method worked. After trying the tween included with NGUI, then iTween and a few other things.. I did a "*.alpha += 0.01;". It ran perfectly.
-
Occam's Razor. :P