How can I make a TMP text change color for a certain amount of time when button is pressed?

Just downloaded unity, working on a game menu, and I want to make a text appear for when the incorrect port for multiplayer is entered. Please help me.

The fastest way to UI success is always to put everything in the UI and turn it on/off when you need it.

To have it only linger a certain amount of time, you use a coroutine.

Plenty of tutorials for the both items above, but if what I wrote does not instantly tell you exactly how to do this, then I suggest that you set this project aside because multiplayer is EXTREMELY advanced with a ton of weird edge cases and considerations.