Search Unity

Animation in child object affecting root

Discussion in 'Timeline' started by Hi_ImTemmy, Mar 10, 2021.

  1. Hi_ImTemmy

    Hi_ImTemmy

    Joined:
    Jul 8, 2015
    Posts:
    174
    Update: False alarm. The values I was seeing are a result of clearing a parent. Not to do with timelines and animations as far as I can see.

    Unity: 2019.4.18f1

    Hello,

    I have a parent and a child object. The child object has an animator on it. The parent root is empty.
    I've created an animation track for the child in a timeline, and I add clips to animate the child object.

    In play mode, whenever an animation on the child plays the root object is getting a bunch of changes to position, rotation, and scale. When scrubbing through and previewing the root isn't affected.

    Why is the root affected in play mode? What is happening? How to do I stop that from happening?
     
    Last edited: Mar 10, 2021
  2. phosphoer

    phosphoer

    Joined:
    Jan 11, 2015
    Posts:
    3
    It might help to see screenshots of the hierarchy + component setup? It sounds very odd, I didn't think an animator was capable of animating objects above it in the hierarchy.

    Is the animation track in the Timeline? Is it possible there are accidental references in Timeline to the parent object?