- Home /
Saving animation curves
Is there any way to save an animation curve to file? The animation curves in the inspector reset each time the script is changed (public variables added)
Answer by Gotard · Oct 13, 2015 at 02:17 PM
You can create class that has AnimationCurve field and inherits from ScriptableObject with will allow you to save curve as asset file, or you can add [SerializeField] attribute to you AnimationCurve so your changes to curve won't be discarded after script compilation.
Answer by Andre-Adam · Jul 29, 2021 at 11:57 PM
I created a new library for my project and saved my curves as presets:
It would be nice if I could name the presets.
Your answer
![](https://koobas.hobune.stream/wayback/20220612041141im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Elevator to loop (Animation) 1 Answer
Modifying an entire animation with a single animation curve? 1 Answer
How to convert cubic Bezier curve into AnimationCurve 3 Answers
Mecanim : Get animation clip curve 0 Answers
Time.deltaTime Too Variable 0 Answers