Search Unity

  1. We would like to hear your feedback about Unity and our products. Click here for more information.
    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:
    25
    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:
    25
    Okay nevermind I accidentally recorded the property into the animation.