瀏覽代碼

Fix function signature in EditorImportPlugin example

Haoyu Qiu 2 年之前
父節點
當前提交
cea00ebf58
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      doc/classes/EditorImportPlugin.xml

+ 2 - 2
doc/classes/EditorImportPlugin.xml

@@ -30,10 +30,10 @@
 		func _get_preset_count():
 		    return 1
 
-		func _get_preset_name(i):
+		func _get_preset_name(preset_index):
 		    return "Default"
 
-		func _get_import_options(i):
+		func _get_import_options(path, preset_index):
 		    return [{"name": "my_option", "default_value": false}]
 
 		func _import(source_file, save_path, options, platform_variants, gen_files):