Jump to content

Widget show from alpha


photo

Recommended Posts

Is it any way to animate showing widget via changing it's alpha?

For WidgetSprite I using setLayerColor, but how do it for all container, for example, for WidgetVBox? Thanks

Link to comment

Is it any way to animate showing widget via changing it's alpha?

For WidgetSprite I using setLayerColor, but how do it for all container, for example, for WidgetVBox? Thanks

 

Have a closer look int Gui class. There are some methods related to child widget alpha transparency and fade in/out effects, which might do the trick

 

....
   void setDefaultAlpha(float alpha) 
   void setFocusedAlpha(float alpha)
   void setFadeInSpeed(float duration) 
   void setTransparentAlpha(float alpha) 
....

Link to comment

This properties inherits all guis, and I need change alpha (and fade in/out effects) for specified widgets... Creating new Gui object and attach it ahead camera seems not easy way :lol:

Link to comment

This properties inherits all guis, and I need change alpha (and fade in/out effects) for specified widgets

 

I am no GUI expert at all, but these properties seem to be per-instance Gui properties. Also UNIGINE sample samples_objects\gui_06 creates 289 Gui instances so I would give it a try.

Link to comment
×
×
  • Create New...