- Home /
EditorGUI.Curvefield presets
Any way to add presets to the curve field editor?
Answer by Bunny83 · Feb 15, 2013 at 01:43 AM
I just saw this question a couple of hours ago.
The official answer is: NO. The CurveEditorWindow is an internal class which isn't ment to be extended or altered in any way.
However since the preset list is stored in an internal array it's possible to change the array. Since the CurveEditorWindow is a popup window changes to the window will be lost as soon as the window lost focus. I've written a "quick" Editorwindow which will inject a custom preset array into the CurveEditorWindow. This EditorWindow has to be open while using the curve editor. It saves the custom presets to the "EditorPrefs" so the presets are preserved between sessions.
I've put the whole script on the wiki since it's quite long ;)
Your answer
Follow this Question
Related Questions
Editing Animations crashes Unity 1 Answer
Can I set Animator State Transition defaults? 3 Answers
Is there a project setting that could be breaking animations? 0 Answers
How to make Bones visible in Editor Mode ? 5 Answers
Play animations in editor 0 Answers