Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug TMPro_InputField moves from where it is initially setup? Is there a way to force it to stay?

Discussion in 'UGUI & TextMesh Pro' started by ObsidianSpire, May 20, 2024.

  1. ObsidianSpire

    ObsidianSpire

    Joined:
    Sep 13, 2013
    Posts:
    54


    Issue shown in video. Basically, my text mesh pro input field is moving from where it starts after I type something. How can I force the text to stay in place relative to its starting position? I've tried anchoring the position and justifying the editing text object left, right, and center but nothing seemed to work.
     
  2. ObsidianSpire

    ObsidianSpire

    Joined:
    Sep 13, 2013
    Posts:
    54
    Any ideas?

    Edit: will try this weekend, shaded. I am working on a gamejam game at the moment and want to wrap up that.
     
    Last edited: May 30, 2024
    Shaded4214 likes this.
  3. Shaded4214

    Shaded4214

    Joined:
    Aug 18, 2017
    Posts:
    15
    Are you able to change your anchor preset from stretch to right, and the change your pivot from 0.5, 0.5 centre to 1, 0.5 as well
     
    ObsidianSpire likes this.
  4. ObsidianSpire

    ObsidianSpire

    Joined:
    Sep 13, 2013
    Posts:
    54
    Experimenting with the anchor was the solution. Thanks for the tip. :)
     
    Shaded4214 likes this.