godot icon indicating copy to clipboard operation
godot copied to clipboard

Expose EditorInspector.edit to scripting

Open aaronfranke opened this issue 1 year ago • 2 comments

Context: I tried to add export settings to a custom format defined in a GDScript plugin, like https://github.com/godotengine/godot/pull/79316, but I found that the edit function of EditorInspector was not exposed, so it was not possible. This PR exposes it. I have tested that this works correctly.

aaronfranke avatar Jul 22 '24 00:07 aaronfranke

We already have multiple edit_* methods exposed in EditorInterface. Are the already exposed APIs not sufficient for your use case?

raulsntos avatar Jul 22 '24 02:07 raulsntos

@raulsntos They're not sufficient, because I don't want to edit in the main inspector, I want to edit in a separate inspector.

Screenshot 2024-07-21 at 9 20 49 PM

aaronfranke avatar Jul 22 '24 04:07 aaronfranke

Thanks!

Repiteo avatar Dec 16 '24 18:12 Repiteo