From f4172445f3b9949c1378c00421e5320c26a191d6 Mon Sep 17 00:00:00 2001 From: HolonProduction Date: Sat, 30 Nov 2024 11:40:21 +0100 Subject: [PATCH] Add `_enable`/`_disable_plugin` to plugin script template --- .../editor/script_templates/EditorPlugin/plugin.gd | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/gdscript/editor/script_templates/EditorPlugin/plugin.gd b/modules/gdscript/editor/script_templates/EditorPlugin/plugin.gd index 547943b910..8ed978688a 100644 --- a/modules/gdscript/editor/script_templates/EditorPlugin/plugin.gd +++ b/modules/gdscript/editor/script_templates/EditorPlugin/plugin.gd @@ -4,6 +4,16 @@ extends _BASE_ +func _enable_plugin() -> void: + # Add autoloads here. + pass + + +func _disable_plugin() -> void: + # Remove autoloads here. + pass + + func _enter_tree() -> void: # Initialization of the plugin goes here. pass