hitColectorPointA.distance is raycast hit distance
PTA is child object
TextMesh tmA = (TextMesh)GameObject.Find(“PTA”).GetComponent();
i am shure tmA.text works cuz i tested whit “Hallo World” and it renderd output
tmA.text = hitColectorPointA.distance;
i get error canot implicity conwert float to string
so i tryed hitColectorPointA.distance.toString;
then i get this error Cannot convert method group ToString' to non-delegate type string’. Consider using parentheses to invoke the method
i will later probabbly use System.math.Round to make it 2 decimals or String.Format
so how to make this work?