RTLTMPro
RTLTMPro copied to clipboard
Texts are not set to RTL when set with code
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 }
Try use:
public void ChangeName(RTLTextMeshPro name) {
chartName.text = name.OriginalText;
}