UnitySimpleFileBrowser icon indicating copy to clipboard operation
UnitySimpleFileBrowser copied to clipboard

Remove legacy text and add Text Mesh Pro support

Open ababilinski opened this issue 1 year ago • 4 comments

Replaces the legacy text component with text mesh pro. This also updates FileBrowser.CalculateLengthOfDropdownText() to calculate size based on TMP_FontAsset

ababilinski avatar Jun 14 '23 18:06 ababilinski

Thank you for the pull request. For now, I'd like to keep the plugin as is and provide optional upgrade path via this plugin: https://github.com/yasirkula/UnityTextToTextMeshProUpgradeTool#upgrading-simplefilebrowser

yasirkula avatar Jun 15 '23 06:06 yasirkula

Hi @yasirkula, I recommend updating to Text Mesh Pro since Unity UI Text is considered legacy and won't be updated,

The main reason for the pull request is to improve XR support for the asset. Using a world canvas with the legacy text component can lead to strange artifacts and blurry text. (see image of artifacts below)

image showing text artifacting when toggling a world canvas on and off

Using your other helpful tool makes the conversion a lot easier, but it can cause merge conflicts when trying to keep the plugin inside a project up to date.

ababilinski avatar Jun 20 '23 04:06 ababilinski

Hmm, I may switch to TMP completely as you've suggested. For the time being though, my backlog is overflowing with other tasks (namely daily job tasks and RuntimeInspector tasks). Afterwards, I'd like to use my tool to convert to TMP which I'm used to 🐱

yasirkula avatar Jun 20 '23 08:06 yasirkula

Thanks for bringing this to my attention BTW. I don't think I was aware of the black text issue.

yasirkula avatar Jun 20 '23 08:06 yasirkula