godot/addons/gut/gut_plugin.gd
raw| 1 | tool |
| 2 | extends EditorPlugin |
| 3 | |
| 4 | func _enter_tree(): |
| 5 | # Initialization of the plugin goes here |
| 6 | # Add the new type with a name, a parent type, a script and an icon |
| 7 | add_custom_type("Gut", "Control", preload("plugin_control.gd"), preload("icon.png")) |
| 8 | |
| 9 | func _exit_tree(): |
| 10 | # Clean-up of the plugin goes here |
| 11 | # Always remember to remove it from the engine when deactivated |
| 12 | remove_custom_type("Gut") |