Skip to content

Dropdown items not showing RTL correctly (+ workaround) #140

@Alaadel

Description

@Alaadel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions