Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Creating .animation file from script with a set FPS value

Discussion in 'Animation' started by Kiritosblade, May 19, 2023.

  1. Kiritosblade

    Kiritosblade

    Joined:
    Jan 11, 2021
    Posts:
    1
    Any idea if it's possible to create an animation file, set curves to it, etc but set the animation files FPS value?
    I know you have access to an AnimationClip.frameRate (Read Only).

    It's a 'simple' question, but huge problem in my case right now.
    My script generates keys into curves then into a predefined animation file (as animationclip attached to script during runtime). But would love to be able to create one on demand that persists while also setting it's framerate in process.