Hi, I am trying to do an effect of fading to text (this text has been created using Text class), I have used to do this the class FadeInOut and FadeInOutController, but it doesn't work, although with an image it does. How I can get the same effect on the text.
//Function CreateFade
private FadeInOut CreateFade(Geometry object, String name){
FadeInOut f = new FadeInOut( name, object, null, null, new ColorRGBA(1, 1, 1, 0), 0.3f);
return f;
}
//Create Controller
logoQuad_fadeInOutController = new FadeInOutController(logoQuad_fadeInOut);
txtObj_fadeInOutController = new FadeInOutController(txtObj_fadeInOut);
yes you can do the same in a controller, just extend Controller, set your values in the constructor (targetalpha, speed, …) and set the alpha value of the text in the overridden update method.