modules/gdscript/editor/script_templates/EditorPlugin/plugin.gd
raw| 1 | # meta-description: Basic plugin template |
| 2 | |
| 3 | @tool |
| 4 | extends _BASE_ |
| 5 | |
| 6 | |
| 7 | func _enable_plugin() -> void: |
| 8 | # Add autoloads here. |
| 9 | pass |
| 10 | |
| 11 | |
| 12 | func _disable_plugin() -> void: |
| 13 | # Remove autoloads here. |
| 14 | pass |
| 15 | |
| 16 | |
| 17 | func _enter_tree() -> void: |
| 18 | # Initialization of the plugin goes here. |
| 19 | pass |
| 20 | |
| 21 | |
| 22 | func _exit_tree() -> void: |
| 23 | # Clean-up of the plugin goes here. |
| 24 | pass |