6fc1c3a4d1
Not all APIs are provided yet, please request whathever you are missing. Some example plugins are provided in demos/plugins. Just copy them to a folder in your project named addons/ and then enable them from the project settings. Have fun!
22 lines
No EOL
363 B
GDScript
22 lines
No EOL
363 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 )
|
|
|
|
|
|
|
|
|
|
|