@tool extends EditorPlugin var import_sprite_frames_plugin func _enter_tree(): if GifManager == null: printerr( "GifManager is not available, please make sure you have the gif-importer plugin installed." ) import_sprite_frames_plugin = preload("importer_plugin.gd").new() # post_import_plugin = preload("post_import.gd").new() add_import_plugin(import_sprite_frames_plugin, true) # add_scene_format_importer_plugin(post_import_plugin) func _exit_tree(): remove_import_plugin(import_sprite_frames_plugin) import_sprite_frames_plugin = null # remove_scene_format_importer_plugin(post_import_plugin) # post_import_plugin = null