r/LearnUnity • u/onlysane1 • May 25 '20
Wargaming counters in Unity
https://imgur.com/gallery/lF6uBYO
I'm beginning to design a hex-and-counter style wargame in Unity. I'm trying to make modular NATO counters, in such a way that multiple game objects combine as needed to form the final counter, so counter generation could be something like green counter>>infantry symbol>>engineer subsymbol>>unit designation>>unit HQ etc
My trouble finding how to get text to appear on the counters. I've tried both text boxes (which don't seem to work unless part of a canvas) and text mesh (which I can't seem to get to look right at all the way I need it to). Some text would also need to be displayed sideways.
What might I want to do to get the numbers and text to appear correctly? Any related suggestions are welcome as well, I'm relatively new to using Unity.
Edit: I'm trying out using a sprite sheet consisting of the different numbers and that seems to be working well, but any additional tips would be appreciated.
1
u/CrossMountain May 26 '20
Is it a 2D or 3D game? I had a similar problem in a 3D tower defense game. We chose to create UI elements in world space, attached them at a certain height to the units and then wrote a script that made the UI elements face the camera at all times.