Unity RTS - Box Selection Tutorial
Check out my current game project!
https://www.youtube.com/watch?v=LKMhKuCSNiY
Intermediate-level RTS tutorial for selecting multiple units with a box.
All code available here:
https://github.com/pickles976/RTS_selection/blob/master/README.md
Unfortunately the blog that I stole the UI code from has 404'd
I know there are a lot of tutorials for this type of RTS-style selection in Unity already out there, but most of them require either an orthographic perspective, or they require looping through every single object in the scene to check if they are inside of the bounding box. Those solutions, while simple, seemed too limited to me. What if you have hundreds or thousands of objects in the scene? This type of selection method would not be able to scale well for games with large numbers of units (with modern CPU's it probably doesn't matter all that much tbh). So this is my collider-based solution.
Song: https://www.youtube.com/watch?v=z0aCVCLdd1s
Anime song: https://www.youtube.com/watch?v=bCodVbucTbo
Other Videos By Seabass
2021-04-13 | 0-100+ hours of practice Johnny B. Goode intro |
2021-01-13 | Unity RTS after 2 weeks |
2020-09-27 | A.I. Arena |
2020-09-02 | Unity MLAgents - planes learning how to land safely |
2020-08-28 | Unity RTS - Building Placement Tutorial |
2020-08-14 | Unity RTS - Boids tutorial |
2020-08-07 | Unity RTS - Movement Tutorial (moving units with Agents and Steering) |
2020-07-19 | Unity RTS - Box Selection Tutorial (addendum) |
2020-04-07 | Fabric simulation from scratch in Unity |
2020-03-22 | Unity RTS - Destroyed Object Tutorial |
2020-03-18 | Unity RTS - Box Selection Tutorial |
2020-03-08 | Unity RTS - Attacking |
2020-01-29 | Unity RTS - Camera Tutorial |
2020-01-28 | Unity RTS - Movement and Pathfinding Groups 2 |
2020-01-21 | Unity RTS - Movement and Pathfinding Groups |
2020-01-14 | Unity RTS - FlowField Pathfinding |
2019-09-03 | Bell Pepper Drop |
2019-02-02 | Plastic Love Guitar Solo Tutorial with TABS |
2018-07-29 | I'm bored |
2018-01-05 | Hacklahoma Promo |
2017-09-15 | 24/7 City Pop Radio シティポップ |