Jump to content

Widget show from alpha


photo

Recommended Posts

Posted

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

Posted

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) 
....

Posted

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:

Posted

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.

×
×
  • Create New...