Unity2D

How can i build this block and put the cube values?

Add a GameObject/UI/Text. Drag the canvas/text into your tile so that it becomes a child of your tile. Set “Render Mode” to “World Space” on the canvas. Then move the text to (0,0) or where ever you want it to be. Since the UI-parts are children of your tile, they will move/scale/rotate with it.

If the text looks fuzzy, increase the “Dynamic Pixels Per Unit” value.