Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Legacy Animation Files are bigger than Animator Files!!!

Discussion in 'Animation' started by ESI_GameStudio, Nov 21, 2023.

  1. ESI_GameStudio

    ESI_GameStudio

    Joined:
    May 27, 2020
    Posts:
    3
    Hi everybody

    I figured out when I put keyframes and make an animation with "Animation" component, that file created is bigger than when I use "Animator" Component.

    As showed on that image, Test1 was created with Animation component and Test2 was created with Animator!
    and That was just a test!
    in my project I have some ANIM files those are so huge and I don't know about that before.!!

    Please help me... what can I do and how can I change my animations format to Animator format.
     

    Attached Files:

  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,535
    If you are animating rotation, try changing the interpolation (right click on Rotation). Euler Angles (quaternion) will generally result in huge file, Quaternion not so much. but your animation might look different (especially if you use "constant" tangents for the keyframes). Euler Angles (Not fully supported) is probably more expensive and it says that it's not fully supported, but I haven't quite found what is not supported, it works fine for me.

    After changing this, do a "save project", so you can see the new file size.

    upload_2023-11-21_16-2-7.png
     
    Last edited: Nov 21, 2023
    ESI_GameStudio likes this.
  3. ESI_GameStudio

    ESI_GameStudio

    Joined:
    May 27, 2020
    Posts:
    3
    Thanks a lot... you saved me!

    I changed the interpolation to first option (Euler Angles) ... and the Test1 file goes to 10kb like Test2!!!!
    Thanks again.