Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

RTL Input field

Discussion in 'UGUI & TextMesh Pro' started by kobi666, Jun 16, 2021.

  1. kobi666

    kobi666

    Joined:
    Oct 13, 2014
    Posts:
    21
    Hey Gang,
    I saw somewhere that Input Field now supports RTL,
    however I wasn't able to see it in the inspector.

    upload_2021-6-16_15-6-9.png

    Can anyone direct me to where to look or alternatively provide a different solution for RTL input field?
     
  2. ickydime

    ickydime

    Joined:
    Nov 20, 2012
    Posts:
    110
    Took me awhile to find it as well.

    Check the underlining textfield instead of the parent inputfield. Each inputfield has children called PlaceHolder and Text. The child named Text has the property EnableRTLEditor.

    You also can do it via code:

    TMP_InputField EmailInput;
    EmailInput.textComponent.isRightToLeftText