mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 07:50:22 +01:00
18 lines
355 B
GDScript
18 lines
355 B
GDScript
tool
|
|
extends EditorPlugin
|
|
|
|
var import_plugin
|
|
|
|
|
|
func _enter_tree():
|
|
import_plugin = preload("res://addons/custom_import_plugin/import_plugin.gd").new()
|
|
|
|
# pass the GUI base control, so the dialog has a parent node
|
|
import_plugin.config( get_base_control() )
|
|
|
|
add_import_plugin( import_plugin)
|
|
|
|
|
|
func _exit_tree():
|
|
remove_import_plugin( import_plugin )
|