GraphicsEditor/addons/graphics_editor/plugin.gd
2019-11-23 05:33:43 -06:00

13 lines
348 B
GDScript

tool
extends EditorPlugin
#TODO: Make a system for setting scripts as tool scripts when running as an editor plugin
var editor_scene = load("res://addons/graphics_editor/Editor.tscn").instance()
func _enter_tree():
add_control_to_bottom_panel(editor_scene, "Graphics Editor")
func _exit_tree():
remove_control_from_bottom_panel(editor_scene)