RTLTMPro icon indicating copy to clipboard operation
RTLTMPro copied to clipboard

Texts are not set to RTL when set with code

Open DarkSmoke75 opened this issue 2 years ago • 1 comments

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 }

DarkSmoke75 avatar Oct 14 '23 08:10 DarkSmoke75

Try use:

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

evgeny-detkov avatar Dec 15 '23 11:12 evgeny-detkov