Making a RTS game #8: Boosting our selection feature (Unity/C#)
Let’s continue our RTS game project: today, we’ll improve our selection mechanism!
Published in
9 min readApr 29, 2021
⬅️ Tutorial #7: Polymorphism, take 2! | TOC | Tutorial #9: Implementing character units and skills ➡️
📕 Get the ebook and bonus material on Gumroad!
🚀 Find the code of this tutorial series on my Github!
A couple of weeks ago, we improved our UI and displayed more info on the buildings (with an info panel and healthbars).
Today, we’re going to continue on this topic and improve our selection mechanism — we’ll do three things:
- display the list of currently selected units: in order to better remember what we’ve selected, even if it is off-screen, let’s list the units at the bottom of the screen as little blocks!
- create selection groups: this is a nice way of switching between your units that many RTS provide
- show up info on the active selected unit: it would be nice to have some data and specific actions for a unit when we select unit