Hey guys,
I added a cool line of code to our script and that is to have the actual name of the cube actually change name using the same text that we set to the text mesh. I guess it’s pretty useful when you can’t tell what it says from afar . Here’s the result:
Here’s the added code:
gameObject.name = "Cube " + snapPos.x / gridSize + "," + snapPos.z / gridSize;