Is it possible to access the EditorInterface singleton from GDScript ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rhulha

I am writing a Godot plugin and I am using this trick here:

var plugin = EditorPlugin.new()
edi = plugin.get_editor_interface();
plugin.queue_free()

But I wonder if I can access the EditorInterface singleton directly, without the need for a EditorPlugin instance…

Why is there a gdnative tag?

SIsilicon | 2018-12-01 18:25

My bad, removed.

rhulha | 2018-12-03 05:53