Chapter 18: Scripting the UI, Sounds, and Graphics
In a game, even if the player sees the game through the camera, there is important information that is not visible in plain sight, such as the exact number of bullets remaining, their health, the enemies, whether there's an enemy behind them, and so on. We have already discussed how to tackle those issues with the UI, sounds, and visual effects (VFX), but as we start to move on with scripting in our game, those elements also need to adapt to the game. The idea of this chapter is to make our UI, sounds, and VFX react to the game situation through scripting, reflecting what is happening in the world.
In this chapter, we will examine the following feedback scripting concepts:
- Scripting the UI ...
Get Hands-On Unity 2021 Game Development - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.