Expose Methods on `TMProTextMeshPro`
tracked
Cake․
Many methods on
TMProTextMeshPro
are not exposed in Udon which disallows precise working with the text and its vertices. E.g. animating text or performing effects on the mesh. Imagine wavy text, jumping text, rotating text, and growing text.This canny requests to expose API such as:
- ForceMeshUpdate
- UpdateGeometry
- maxDisplayedChars
- textInfo
The text info is very important as it allows access to the
meshInfo
on each character mesh and the vertices
.The
meshInfo
exposes mesh.vertices
and vertices
, both are different and crucial.Log In
Cake․
I want to add that not everything on TextMeshPro's types has been exposed yet, I would propose this to be done as well, there are many parts of the API that may be useful for some.
NarryG
Cake․: I've been wanting to port my typewriter system over to VRC for some time, but I'm completely blocked by the lack of lineInfo, wordInfo, and characterInfo.
Without those, I can't break down the text the way I need to for a typewriter with various textfx to work performantly.
Momo the Monster
tracked
Cake․
Momo the Monster: I wanted to add one thing,
gameObject
and transform
on TMP and its UI variant types are not both exposed.Momo the Monster
Merged in a post:
Expose TMPro.TextMeshPro(UGUI).transform
LefTonbo
Currently, TMPro.TextMeshPro(UGUI).transform is not exposed.
Hopefully, we can still use GetComponent<Transform>() to get its transform.
LefTonbo
Also, basic methods/propaties such as
enabled
and transform
is currently not exposed, which makes TMPro more useless than UI.TextLefTonbo