Files
romants/addons/godot_debug_environments/plugin.gd
2024-10-05 13:12:42 +02:00

14 lines
421 B
GDScript

@tool
extends EditorPlugin
var plugin
func _enter_tree():
plugin = preload("res://addons/godot_debug_environments/debug_environment_editor_inspector.gd").new()
add_autoload_singleton("DebugEnvironmentWatcher", "res://addons/godot_debug_environments/debug_environment_watcher.gd")
add_inspector_plugin(plugin)
func _exit_tree():
remove_autoload_singleton("DebugEnvironmentWatcher")
remove_inspector_plugin(plugin)