Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Feature Request Can Animation add new features for playback speed?

Discussion in 'Animation' started by h765643729, Aug 18, 2023.

  1. h765643729

    h765643729

    Joined:
    Jan 17, 2018
    Posts:
    21
    Can the Animation increase the playback speed?

    It is very inconvenient to make animation keyframes.

    Changing the playback speed by using Samples will result in changing back to the original Samples' values, and the animation will change.

    For example, if you change the Samples to 60 after changing the Samples to 30, the effect will change.
     
  2. SolarianZ

    SolarianZ

    Joined:
    Jun 13, 2017
    Posts:
    256
    The Legacy Animation is pretty old. You can try Animator or Playable.
     
  3. h765643729

    h765643729

    Joined:
    Jan 17, 2018
    Posts:
    21
    Sorry, my English is very poor and I didn't express myself clearly. I made a 2d skeleton Animation in unity's Animation window, not Legacy Animation.
     

    Attached Files:

  4. SolarianZ

    SolarianZ

    Joined:
    Jun 13, 2017
    Posts:
    256
    In that case, it would be even simpler. You can directly remove the Z-axis displacement in the Animation Window.

    Furthermore, you should be trying to solve the issue of runtime playback speed, right? If so, you can use Animator or Playable to play the animation you created, as they both support setting the playback speed.
     
  5. h765643729

    h765643729

    Joined:
    Jan 17, 2018
    Posts:
    21
    Thank you for your advice.

    My purpose is not to control the playback speed when the game is running, but to control the playback speed when making key frame Animation through the Animation windows interface, so as to make animation more convenient.

    I knew I could fix the speed in the Animator, but it didn't feel elegant enough.

    And I'm not sure if the Animation itself is slow (same number of keyframes, but with more frame intervals) in order to play slowly in unity Animation, adjust the playback speed in the Animator to make it play properly. Does this consume more performance than making animations directly at normal playback speed while the game is running?
     
  6. SolarianZ

    SolarianZ

    Joined:
    Jun 13, 2017
    Posts:
    256
    I rarely use the Animation window, so I don't have much knowledge about its functionality.
    However, based on what I know:
    • The actual length of an AnimationClip during runtime will be displayed in its Inspector. upload_2023-8-28_10-2-17.png
    • The playback speed property of the Animator during runtime is only used for calculating the animation's deltaTime, so it shouldn't cause any performance issues.