Optional code for TextMesh in Unity 2019

After several unsuccessful attempts, I have managed to change the text values ​​using this code.
(using Unity 2019.1.7f.1)

GetComponentInChildren().text = snapPos.x/panelGrid + “,” + snapPos.y/panelGrid;

Privacy & Terms