소스 검색

Add `_enable`/`_disable_plugin` to plugin script template

HolonProduction 9 달 전
부모
커밋
f4172445f3
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      modules/gdscript/editor/script_templates/EditorPlugin/plugin.gd

+ 10 - 0
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