UI – Unity By Example

How to Convert Numbers to Letters in Unity

Converting numbers to text can be useful in various situations, especially in game development. In Unity, for example, converting numbers to a word representation can be used for displaying the quantity of game resources, scores, levels, time, etc. It can also be helpful for creating customizable interfaces where numbers need to be displayed in words. ... Read More

How to Make a Simple Dialogue System in Unity

Dialogues in games are interesting mechanics for interacting with the environment Steps Create script Dialogue.cs Create script DialogueManager.cs Create two Text Mesh Pro. First for name, second for dialogues Create empty object and attach script DialogueMananger.cs Press the space bar to go to the next dialog Result Download

How to Make Health Bar in Unity

The health bar is suitable for determining the amount of health of enemies or the main character. The health bar changes color depending on the amount of health to green, yellow, red. Steps Download

How to Make Loading Bar in Unity

The loading bar is a convenient visual design for determining how much is left to load the game Steps Create script LoadingBar.cs Create two scenes Loading and Main Add two scenes to Scene is Build File > Build Settings > Add Open Scenes Create a Slider customize to your taste. Add to Text Mesh Pro ... Read More

How to Pause a Game in Unity

In most games, it is desirable to interrupt the game at some point in order to do something else, such as taking a break or changing options. Steps Create script Pause.cs Create canvas in it create empty object add text. Add script Pause.cs to Pause obejct. Select key to pause, default key is escape. Result ... Read More