Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

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

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

  1. Kiritosblade


    Jan 11, 2021
    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.