Font fallback and Button Selection race condition

Hello,
I don’t know if this is the best place to submit my issue but I’ll try.

In my menus, there are some buttons with TextMesh Pro text inside, and I setup a fallback font for Korean. I’m using the Localization package to change the font and it’s working well.

In my menu, in the Start() function, I preselect the first button of the menu (for the gamepad to be able to navigate properly).

It’s working well with Latin languages but when the fallback activates for Korean, my button doesn’t appeared selected. It’s just a rendering issue because I can navigate and when I navigate back to this option it appears selelected.

I tried to put my button.Select() in a coroutine and delay the selection and there’s no more issue.

I’m assuming there’s a race condition between the fallback apply and the button selection and I wonder what is the most elegant way to handle this. Or is it due to Localization?

Thanks!

Since it might be tricky to try to reproduce the issue on our end, could you please submit a bug report with project? This would make it easier / quicker for me to take a closer look to figure out what might be happening.

If you do submit a bug report, please provide the Case # once you have it.

Hi Stephan,
here you go 1376718.

1 Like

Hi @Stephan_B ,
did you get a chance to look at it?

Is it a real bug or a coding mistake from me?

Thanks.

I have not. I will try to look at it later tonight or within the next day or so.

1 Like

Looks like the same issue as this one.