Search Unity

Resolved Animation position offset

Discussion in 'Timeline' started by wtetotew, Feb 7, 2021.

  1. wtetotew

    wtetotew

    Joined:
    Apr 12, 2020
    Posts:
    68
    Hi.

    Hi have a 2d character with multiple animations set in mecanim.
    All the animations are predetermined so I came to the conclusion that Timeline is the best way to handle them.

    Problem is now when I import them on animation track, they are all messed up.

    I tried to change track offset(apply Scene Offsets) and also "match offset to next/previous clip" on the timeline.

    It works in Timeline Priview but still messed up in the game view.

    Any idea?

    Thanks
     
    FoggyFeather likes this.
  2. wtetotew

    wtetotew

    Joined:
    Apr 12, 2020
    Posts:
    68
    Update.
    I sorted this out by recording position of some parent gameobject that weren't.
     
  3. wtetotew

    wtetotew

    Joined:
    Apr 12, 2020
    Posts:
    68
    Edit

    Stilll have a lot of trouble, some elements became offset, others don't.
    can't find what is wrong.

    For a mysterious reason it won't replicate the Z axis rotation of my character.
    All is ok in the animation windows.

    Also my main character is 2D rigged.
    the parent gameObject have the animator component on it.
    the Y position of this always offset. I tried every options.

    I think the problem is that the animator component is on the character parent gameObject and this one is also animated.

    I can fix this by setting the offset of each individual clip but there is a lot of them and they are called often. Is it not problem for performance since the offset have to be calculated each time?

    If this is the problem should I rebuild all the hierachy of my character by adding an extra parent on top of the current parent which contain the animator now (since the animation binding are lost when you change the hierarchy)?
     
    Last edited: Feb 8, 2021
  4. DavidGeoffroy

    DavidGeoffroy

    Unity Technologies

    Joined:
    Sep 9, 2014
    Posts:
    542
    Before you rebuild your whole hierarchy, I would suggest that you file a bug report so we can look at it.

    Maybe there's a bug, maybe we've already fixed it, or maybe we can give you an easier way of getting this fixed.

    But without looking at it, it's really hard to diagnose this issue.
     
  5. arjun2011

    arjun2011

    Joined:
    Jul 7, 2022
    Posts:
    1
    i have the same problem!
     
  6. bannerbruce

    bannerbruce

    Joined:
    Feb 22, 2017
    Posts:
    3
    resolved?maybe i should update cinemachine?