RTLTMPro icon indicating copy to clipboard operation
RTLTMPro copied to clipboard

Dropdown items not showing RTL correctly (+ workaround)

Open Alaadel opened this issue 9 months ago • 0 comments

I have added a TMPro Dropdown, and replaced the item's TMPro with RTLTMPro. I created options normally at runtime but the RTL text showed incorrectly.

The workaround was to add a simple script to the Item Label object (used to create dropdown items) which does this:

public class RTLDropdownUpdate : MonoBehaviour
    {
	    [SerializeField] private RTLTextMeshPro Text;
	    protected void Start()
	    {
		    string s = Text.text;
		    Text.text = s;
	    }
    }

I have tested a few other solutions, including ForceFix, but this is the workaround that worked.

Alaadel avatar Jan 01 '25 12:01 Alaadel