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

Texts are not set to RTL when set with code #117

Open
DarkSmoke75 opened this issue Oct 14, 2023 · 1 comment
Open

Texts are not set to RTL when set with code #117

DarkSmoke75 opened this issue Oct 14, 2023 · 1 comment

Comments

@DarkSmoke75
Copy link

DarkSmoke75 commented Oct 14, 2023

when getting a text from RTLTMP from code and want to set it on another object, the text become a normal text and is not fixed
but works perfectly when set manually

public void ChangeName(RTLTextMeshPro name) { chartName.text = name.text; //Does not work chartName.text = "آتشبار منتخب"; //works great }

@evgeny-detkov
Copy link

Try use:

public void ChangeName(RTLTextMeshPro name) {
    chartName.text = name.OriginalText;
}

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

No branches or pull requests

2 participants