Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

iOS's text does not line up with Unity's text

Discussion in 'UGUI & TextMesh Pro' started by eab6863, Sep 7, 2016.

  1. eab6863

    eab6863

    Joined:
    Feb 12, 2015
    Posts:
    4
    I am currently having a problem where the text that is rendered by a Unity input field does not line up with the text rendered in a native iOS input field(UITextField and UITextView). I have checked that they are both the same font and that the font size is being adjusted to match. I have also tried to adjust the font tracking on iOS and got it to perfectly line up for one character but then it does not line up for others. This problem is not happening on the Android version of the game.

    The solid text is the Unity InputField and the transparent text is the native iOS UITextField.

    Original
    photo (3).PNG
    photo (4).PNG
    photo (5).PNG

    tracking 12
    photo 1.PNG
    photo 2.PNG