i have 10 waves in my game and i want to display the wave names.
how do i display the 10 different level names? e.g “level 1 - annoying dog” and “level 2 - dog invasion”
i also want the text to appear on a canvas because the canvas follows the player.
( The FOV is rather small in comparison to the world)
You can just use Canvas UI Text, put your level names into an array and set text value on every wave to coresponding value from the array.
Something like this:
using UnityEngine;
using UnityEngine.UI;
...
private final string[] levelNames = {"level 1 - annoying dog", "level 2 - dog invasion", ...};
public Text waveNameText;
...
waveNameText.text = levelNames[nextWave];
...