I’m trying to anchor a text mesh in Javascript. I noticed that you can set the anchor in the inspector window, but seeing as I’m instantiating this dynamically, I can’t do that.
Here is the code:
TextMeshVariable.anchor = TextAnchor.MiddleCenter;
This returns an error. I consulted the scripting manual and I see that there is no anchor member for text meshes…seeing as it’s available in the inspector though, this doesn’t make sense.
Anyone encountered this problem before?
Cheers