Search Unity

Animation Not Working On Empty Parent GameObject !

Discussion in 'Animation' started by CoolCosmos, May 24, 2020.

  1. CoolCosmos

    CoolCosmos

    Joined:
    Nov 21, 2016
    Posts:
    247
    Hi guys,

    I have three gameobjects which are children of empty gameobject. When i add keyframes for parent object and hit play preview, it seems working. But animation is not working when i start the game.

    NOTE: When i animate three gameobjects separately, it works...

    These three gameobjects have their pivots on corners so changing their rotations separately makes them apart too. So i have to animate parent object. Can u help me ?
     
    Last edited: May 25, 2020
  2. CoolCosmos

    CoolCosmos

    Joined:
    Nov 21, 2016
    Posts:
    247
    I fixed it by unchecking "Apply Root Motion" on Animator component. Now it works even if i make animation for parent object. :)
     

    Attached Files: