Currently, I'm developing a hexagonal tilemap game. Every tilemap is a player and I need to display their scores on them. How can I do this?
CodePudding user response:
One way would be to create a prefab with your text setup (e.g. a worldspace TextMeshPro object), and then instantiate them using Tilemap.GetCellCenterWorld() to get the appropriate positioning for relevant tiles. Get the text object using GetComponent<TextMeshPro>() so you can change the text etc.
