From e24a3a577bd93f82a3a342f02eedf67e62a170b8 Mon Sep 17 00:00:00 2001 From: "Wilson E. Alvarez" Date: Fri, 26 Apr 2024 18:46:40 -0400 Subject: [PATCH] Implement EditorImportPlugin get priority virtual call --- .../gdx_texture_packer_import_plugin.gd | 5 +++++ .../gdx_texture_packer_import_plugin.gd | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/godot3/addons/rubonnek.gdx_texture_packer_atlas_importer/gdx_texture_packer_import_plugin.gd b/godot3/addons/rubonnek.gdx_texture_packer_atlas_importer/gdx_texture_packer_import_plugin.gd index 73782cd..1afc171 100644 --- a/godot3/addons/rubonnek.gdx_texture_packer_atlas_importer/gdx_texture_packer_import_plugin.gd +++ b/godot3/addons/rubonnek.gdx_texture_packer_atlas_importer/gdx_texture_packer_import_plugin.gd @@ -36,6 +36,11 @@ func get_visible_name() -> String: return "GDX Atlas" +# Returns the processing priority of the plugin. Higher priority import plugins will be preferred over the recognized extension. +func get_priority() -> float: + return 1.0 + + # Godot's import system detects file types by their extension. In the # get_recognized_extensions() method you return an array of strings to # represent each extension that this plugin can understand. diff --git a/godot4/addons/rubonnek.gdx_texture_packer_atlas_importer/gdx_texture_packer_import_plugin.gd b/godot4/addons/rubonnek.gdx_texture_packer_atlas_importer/gdx_texture_packer_import_plugin.gd index 7a7fd46..3462c41 100644 --- a/godot4/addons/rubonnek.gdx_texture_packer_atlas_importer/gdx_texture_packer_import_plugin.gd +++ b/godot4/addons/rubonnek.gdx_texture_packer_atlas_importer/gdx_texture_packer_import_plugin.gd @@ -36,6 +36,11 @@ func _get_visible_name() -> String: return "GDX Atlas" +# Returns the processing priority of the plugin. Higher priority import plugins will be preferred over the recognized extension. +func _get_priority() -> float: + return 1.0 + + # Godot's import system detects file types by their extension. In the # get_recognized_extensions() method you return an array of strings to # represent each extension that this plugin can understand.