Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question RectTransform.rect.xMin Not Changing?

Discussion in 'UGUI & TextMesh Pro' started by Payaso_Prince, Aug 2, 2022.

  1. Payaso_Prince

    Payaso_Prince

    Joined:
    Jul 17, 2017
    Posts:
    91
    Good Morning All,

    I am positioning my UI Selector to the left of my menu using "RectTransform.rect.xMin". But for some reason, when the menu's transform moves, RectTransform.rect.xMin is remaining the same.

    I need the Selector to move to the left of the menu no matter where the menu moves. Is anyone able to assist? Thanks a ton!

    Here's an example of what's happening:



     
    Last edited: Aug 2, 2022