Files
Godot-SimpleLogger/plugin.gd
2025-12-21 21:41:08 +01:00

16 lines
334 B
GDScript

@tool
extends EditorPlugin
const AUTOLOAD_NAME = "Log"
func _enter_tree() -> void:
# Add the autoload when the plugin is enabled
add_autoload_singleton(AUTOLOAD_NAME, "res://addons/SimpleLogger/logger.gd")
func _exit_tree() -> void:
# Remove the autoload when the plugin is disabled
remove_autoload_singleton(AUTOLOAD_NAME)