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

LocalPosition not working in Beta20??

Discussion in 'UGUI & TextMesh Pro' started by quinnbot, Oct 6, 2014.

  1. quinnbot

    quinnbot

    Joined:
    Sep 18, 2014
    Posts:
    10
    So... ever since I downloaded b20, Ive been noticing very strange behavior with uGUI. First, many of my anchors appeared to be in the wrong places and had to be manually fixed. Second, some positioning and animation of uGUI elements that relied on rectTransform.localPosition were broken. Experimenting in code it now appears like localPosition is being ignored??

    Is anyone else seeing this behavior?
     
  2. froglord

    froglord

    Joined:
    Oct 7, 2014
    Posts:
    8
    are you setting the position and parent in-code? try messing with transform.SetParent(otherTransform, false)
    setting the parent after setting the position makes it work as expected too I'm pretty sure