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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

RectTransform.rect

Discussion in 'UGUI & TextMesh Pro' started by Romeno, Jun 24, 2021.

  1. Romeno

    Romeno

    Joined:
    Jun 24, 2013
    Posts:
    34
    Hello,

    I see RectTransform.rect.size returns different results depending on the anchoring of the RectTransform. When anchors are together at the center it returns about ~1440x2560 for my case. But when anchors are at corners it returns like 4365x7758. Why?
     
  2. Romeno

    Romeno

    Joined:
    Jun 24, 2013
    Posts:
    34
    This appears to happen during prefab editing