You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #78784 from timothyqiu/editor-import-plugin-example
Fix function signature in `EditorImportPlugin` example
This commit is contained in:
@@ -30,10 +30,10 @@
|
|||||||
func _get_preset_count():
|
func _get_preset_count():
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
func _get_preset_name(i):
|
func _get_preset_name(preset_index):
|
||||||
return "Default"
|
return "Default"
|
||||||
|
|
||||||
func _get_import_options(i):
|
func _get_import_options(path, preset_index):
|
||||||
return [{"name": "my_option", "default_value": false}]
|
return [{"name": "my_option", "default_value": false}]
|
||||||
|
|
||||||
func _import(source_file, save_path, options, platform_variants, gen_files):
|
func _import(source_file, save_path, options, platform_variants, gen_files):
|
||||||
|
|||||||
Reference in New Issue
Block a user