What if your game could tell you exactly what's happening without you guessing?
Why UI communicates game state in Unity - The Real Reasons
Imagine playing a game where you have no idea how much health you have left or how many points you scored. You keep guessing and hoping for the best.
Without a clear display, you waste time checking your status manually or get confused. This makes the game frustrating and less fun.
Using UI to show game state means the player always knows what is happening. Health bars, score counters, and timers update automatically and clearly.
Debug.Log("Player health: " + health);healthText.text = $"Health: {health}";Players can focus on playing and making decisions because the game clearly shows their status in real time.
In a racing game, the UI shows your current speed and lap time so you can race better without guessing.
Manual checking of game status is confusing and slow.
UI updates game state clearly and instantly.
This makes games more fun and easier to play.