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

Animator locks UI Image in-place

Discussion in 'Animation' started by dkollmann, Jan 9, 2017.

  1. dkollmann

    dkollmann

    Joined:
    Jul 25, 2009
    Posts:
    28
    I have an UI element with an Image and Animator component.

    Although the root motion option is disabled, any change I do to RectTransform.position or RectTransform.anchoredPosition is reverted. When disabling the Animator, the position changes as expected.

    I even tried using OnAnimatorMove() to work around this by caching my desired position but no change.

    Any suggestion how to prevent Animator from locking my position although root motion is disabled?
     
  2. dkollmann

    dkollmann

    Joined:
    Jul 25, 2009
    Posts:
    28
    Okay nevermind I accidentally recorded the property into the animation.