BocuD / VRBuildHelper

An integrated editor toolset that adds a number of quality of life features to assist VRChat world creators in managing their projects.
MIT License
43 stars 6 forks source link

'Print to TextMeshPro' won't work for canvas-bound TMP elements [v1.0.0 rc2] #1

Closed kidkwazine closed 2 years ago

kidkwazine commented 2 years ago

This is an awesome utility! Found something that might be worth mentioning in the docs (until we have a better solution exposed)

Currently, the BuildHelperUdon script uses the TextMeshPro class for the targetTextMeshPro variable. This could cause confusion if anyone creates their text using "UI > Text - Text Mesh Pro" as this canvas-bound TMP element uses a different class (TextMeshProUGUI)

I know there's no straight forward way to handle this without having the TMP_Text base class exposed (canny: https://feedback.vrchat.com/vrchat-udon-closed-alpha-feedback/p/expose-tmprotmptext), but I'm putting it here so it's on the radar!

BocuD commented 2 years ago

I can fix that actually, by just working around it in the inspector. I can make the inspector objectfield a TMP_Text instead and then handle the UdonBehaviour stuff somewhere else, should be easy to do.

BocuD commented 2 years ago

Actually i forgot to reply here, this was added in https://github.com/BocuD/VRBuildHelper/commit/eb8bce42db614aabafbba277b65ff29f4ce2212d (among other things)