I need help. I want to make it in my game so I can fade my text in when you do something, almost like a warning. But I can’t do it. I have this function that is supposed to do it, but it both of the functions don’t do anything.
Here is the code.
public void flashMessage(TMP_Text message)
{
message.alpha = message.alpha + (fadeSpeed * Time.deltaTime);
message.CrossFadeAlpha(0.5f, 1f, false);
}
When the function is called, I know it is, (I have a debug.log) but nothing happens to the text.