Edit AnimationCurve from the inspector view? (Custom inspector)

I would like to edit an AnimationCurve property in the inspector view (rather than in a separate window), to make viewing and editing the curve more convenient. Something like seen in the AudioSource component:

[33658-screenshot+2014-10-14+05.26.37.png|33658]

I would only be editing a single curve, and I don’t need the vertical line indicating the current point along the curve. EditorGUILayout.CurveField() did not give the expected result, and I can’t find any other function for displaying the curves. I don’t know how to approach this, so I hope someone can point me in the right direction.

Thanks in advance!

Might be a little late, but for anyone googling this…

What you are looking for is the CurveEditor class. Unfortunately, it is internal to the Unity Editor and not exposed to user created editor scripts. You would have to implement one on your own :frowning: