Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.

    Read our full announcement for more information and let us know if you have any questions.

Question Beginner question: Anchor position/yellow box position

Discussion in 'Getting Started' started by schroed, Nov 21, 2021.

  1. schroed


    Aug 20, 2018

    I am a unity beginner and currently working through a tutorial.

    My problem is that the yellow box/anchor doesn’t cover the text box like in the TUTORIAL-video.

    Instead the yellow box/anchor changes position if I zoom in or out.

    It happens even if I delete the Image or Text (TMP) and add a new one.

    For better understanding I uploaded a screenshot.

    Does somebody know a fix?


    Attached Files:

  2. Schneider21


    Feb 6, 2014
    Those yellow boxes are an indicator of something different than the object's RectTransform. Honestly, I hate them. I think they get edited by default if you have the Transform tool active (instead of the RectTransform) when dragging the handles for the element, but there may be another way to change it inadvertently.

    This box represents the values for the Margins of the TextMeshPro element, something that can be found under the TextMeshPro - Text (UI) component's "Extra Settings" dropdown. Ideally, in my opinion, you'd want all those Margins values set to 0 and modify the positioning/sizing of the element with the RectTransform properties and/or Layout Groups as needed.

    schroed likes this.