- Home /
Changing vertex positions of a uGUI Text Mesh
I don't know how to go about this really and I have tried a few things already. I want to alter certain vertices of a uGUI Text component. What I have tried so far:
I created a script deriving from BaseMeshEffect which has the method ModifyMesh. I managed to get changes in there, but only upon loading scripts or starting the game. A call to Rebuild on the Text component does not trigger this method. According to bitbuckets repo, only setVerticesDirty needs to be called so the execution for this function does not return, which I did. Since the UI is a DLL, I can't debug it, so that's not really any good.
I looked up the CanvasRenderer component and all it has is a SetMesh method, there's no GetMesh, or a property to the mesh. This class I could not find on Bitbucket at all, so I have no idea how and where the Mesh is.
I'm stuck here really, because the APIs documention is not the best I must say.
E.g. the docs for BaseMeshEffect explain the ModifyMesh method with a Mesh parameter, where this is now the VertexHelper. And THIS GUY is quite confusing...
So I would like to know what the correct way of, lets say "animating" a uGUI Text Mesh is?