Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TMPro - UI Effect stops working when switching languages (Fallback SDF) #298

Open
Nicolas-Red opened this issue Jan 17, 2025 · 2 comments
Open
Assignees
Labels

Comments

@Nicolas-Red
Copy link

Nicolas-Red commented Jan 17, 2025

Describe the bug
UI Effects stop working if you switch between different languages and have fallback font SDFs.
I think it has to do with the submeshes it creates.

To Reproduce
Steps to reproduce the behavior:

  1. Create a font with fallback SDF language files. (Ex. English font with Arabic fallback font)
  2. Swap between the languages a few times in your TMPro Text.

Expected behavior
UI Effects should apply correctly when changing the text field.

Screenshots
Here it shows the flow:
First is working English.
Second is working Arabic.
Third is when it swaps back to English, the UI Effect is now gone.
Image
Image
Image

Environment (please complete the following information):
Version 5.2.1
Mac Editor
Unity 6000.0.28f1
WebGL

@mob-sakai
Copy link
Owner

mob-sakai commented Jan 18, 2025

Thank you for your reporting!

Could you please attach a minimal project (included Assets, Packages and ProjectSettings directories) that reproduces the issue?
Of course, you don't need to include any secret assets from your project. Feel free to use free assets instead.

repos

@mob-sakai
Copy link
Owner

The issue is not reproduced on my environment...
(Sorry, I’m not familiar with Arabic...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants