class_resourceimporter.rst 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the ResourceImporter.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_ResourceImporter:
  6. ResourceImporter
  7. ================
  8. **Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Inherited By:** :ref:`EditorImportPlugin<class_EditorImportPlugin>`
  10. Base class for the implementation of core resource importers.
  11. Description
  12. -----------
  13. This is the base class for the resource importers implemented in core. To implement your own resource importers using editor plugins, see :ref:`EditorImportPlugin<class_EditorImportPlugin>`.
  14. Tutorials
  15. ---------
  16. - :doc:`../tutorials/plugins/editor/import_plugins`
  17. Enumerations
  18. ------------
  19. .. _enum_ResourceImporter_ImportOrder:
  20. .. _class_ResourceImporter_constant_IMPORT_ORDER_DEFAULT:
  21. .. _class_ResourceImporter_constant_IMPORT_ORDER_SCENE:
  22. enum **ImportOrder**:
  23. - **IMPORT_ORDER_DEFAULT** = **0** --- The default import order.
  24. - **IMPORT_ORDER_SCENE** = **100** --- The import order for scenes, which ensures scenes are imported *after* all other core resources such as textures. Custom importers should generally have an import order lower than ``100`` to avoid issues when importing scenes that rely on custom resources.
  25. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  26. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  27. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`