Hi all, im using the inspector to assign my 3d text using…
public TextMesh my3DText;
I then wish to change the text value…
my3DText.text = “test”;
but this throws up an error…“there is no GUIText attached…”
how can i access the text value of the 3d text? thanks
The code you posted is correct and works fine. Sounds like the error is from some other code that’s attempting to access a GUIText component (which is not the same as a TextMesh component).
–Eric
hi thanks, i reassigned it in the inspector and it worked. odd one. merry christmas