Animation Curve library

Hi, Is it possible to save, load and share animation curves between unity projects? Say I have about 30 curves that I like in one project and don’t want to recreate them in another… Any chance I could export/import them elswhere?

Hey, @christougher , you cannot export only a subset of the curve from a clip. You can, however, duplicate the clip and then remove all the curve that you don’t want from this clip and then export the .animationclip asset.

Just to be sure we are talking about the same thing I’m not talking about mecanim. I’m talking about animation curves that are part of the editor gui. When you click the curveField in the editor the animation curve editor pops up and you have several curves available in a clean project or you can make new ones. I’m wondering if I can save all the curves I’ve made and import them into another project

No worries! AnimationCurve can be serialized, so one option is to create a ScriptableObject with an array of AnimationCurve objects. Then the ScriptableObject file can be moved to other Unity projects.

Here is an example: Reusing an AnimationCurve through scripting