UI Elements For Wave System | Unity Developer

<p>While I&rsquo;m continuing work on implementing different mechanics for the boss fight for my space shooter game, I realized that while I do have an enemy spawning&nbsp;<a href="https://medium.com/@derekanderson-dev/wave-system-unity-developer-135d3a028d0d" rel="noopener">wave system</a>&nbsp;in place, there aren&rsquo;t any notifications to tell the player they are on the next wave. Since the boss fight will the final wave of the game, we should probably communicate to the player what wave they are currently on.</p> <ol> <li>Create enough text UI objects in Unity to account for each wave number. These will be added in Canvas in the Hierarchy view, which accounts for all of the UI elements.</li> </ol> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:263/1*Z2n-6EY7BiPitiHQcC2g3Q.png" style="height:80px; width:239px" /></p> <p>At this point, you can modify the text size, position, and anchor points for each wave. For my game, the current wave will be displayed underneath the score, updating to the next wave once enough enemies have been destroyed by the player.</p> <p>2. Create an array to hold all of the waves in the UIManager script.</p> <pre> [SerializeField] private TMP_Text[] _waves; </pre> <p>3. Add each wave to their respective waves in the Unity Inspector view. This is done within Canvas of the Hierarchy view, not within Waves.</p> <p><a href="https://medium.com/@derekanderson-dev/ui-wave-system-unity-developer-8daf51db522f"><strong>Read More</strong></a></p>