Get the "Curve" editor as a .tscn file

Godot Version

4.7 stable

Question

I’m working on an UI app, and one thing I need to include is a Curve editor, like the one you can use with exported Curve variables

While i could make my own Curve editor, I was wondering if there was an easy way to use the one already built-in the Godot editor and save it to a .tscn file, wich feels reasonable to me since Godot is made, welp, in Godot

This is something I’ve also wanted to do in the past, for example to include a polygon editor or line editor in my projects

When building a plugin, some editor-only nodes are actually at your disposal, like a better file dialog and a number field with slider.

I think to expose these to a runtime app you may have to recompile or add a gdextension.

Maybe @mrcdk has a good suggestion for you?

As far as I know, no. While the editor is built with the same components you have access to there’s no scene files or scripts. All the components of the editor are written in C++.

You can use the editor’s code as a guide to write your own: