class_editorfilesystem.rst 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the EditorFileSystem.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_EditorFileSystem:
  6. EditorFileSystem
  7. ================
  8. **Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. Resource filesystem, as the editor sees it.
  10. Description
  11. -----------
  12. This object holds information of all resources in the filesystem, their types, etc.
  13. Methods
  14. -------
  15. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`String<class_String>` | :ref:`get_file_type<class_EditorFileSystem_method_get_file_type>` **(** :ref:`String<class_String>` path **)** const |
  17. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` | :ref:`get_filesystem<class_EditorFileSystem_method_get_filesystem>` **(** **)** |
  19. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` | :ref:`get_filesystem_path<class_EditorFileSystem_method_get_filesystem_path>` **(** :ref:`String<class_String>` path **)** |
  21. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`float<class_float>` | :ref:`get_scanning_progress<class_EditorFileSystem_method_get_scanning_progress>` **(** **)** const |
  23. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`bool<class_bool>` | :ref:`is_scanning<class_EditorFileSystem_method_is_scanning>` **(** **)** const |
  25. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  26. | void | :ref:`scan<class_EditorFileSystem_method_scan>` **(** **)** |
  27. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  28. | void | :ref:`scan_sources<class_EditorFileSystem_method_scan_sources>` **(** **)** |
  29. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  30. | void | :ref:`update_file<class_EditorFileSystem_method_update_file>` **(** :ref:`String<class_String>` path **)** |
  31. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  32. | void | :ref:`update_script_classes<class_EditorFileSystem_method_update_script_classes>` **(** **)** |
  33. +-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  34. Signals
  35. -------
  36. .. _class_EditorFileSystem_signal_filesystem_changed:
  37. - **filesystem_changed** **(** **)**
  38. Emitted if the filesystem changed.
  39. ----
  40. .. _class_EditorFileSystem_signal_resources_reimported:
  41. - **resources_reimported** **(** :ref:`PoolStringArray<class_PoolStringArray>` resources **)**
  42. Remitted if a resource is reimported.
  43. ----
  44. .. _class_EditorFileSystem_signal_resources_reload:
  45. - **resources_reload** **(** :ref:`PoolStringArray<class_PoolStringArray>` resources **)**
  46. ----
  47. .. _class_EditorFileSystem_signal_sources_changed:
  48. - **sources_changed** **(** :ref:`bool<class_bool>` exist **)**
  49. Emitted if the source of any imported file changed.
  50. Method Descriptions
  51. -------------------
  52. .. _class_EditorFileSystem_method_get_file_type:
  53. - :ref:`String<class_String>` **get_file_type** **(** :ref:`String<class_String>` path **)** const
  54. Gets the type of the file, given the full path.
  55. ----
  56. .. _class_EditorFileSystem_method_get_filesystem:
  57. - :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` **get_filesystem** **(** **)**
  58. Gets the root directory object.
  59. ----
  60. .. _class_EditorFileSystem_method_get_filesystem_path:
  61. - :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` **get_filesystem_path** **(** :ref:`String<class_String>` path **)**
  62. Returns a view into the filesystem at ``path``.
  63. ----
  64. .. _class_EditorFileSystem_method_get_scanning_progress:
  65. - :ref:`float<class_float>` **get_scanning_progress** **(** **)** const
  66. Returns the scan progress for 0 to 1 if the FS is being scanned.
  67. ----
  68. .. _class_EditorFileSystem_method_is_scanning:
  69. - :ref:`bool<class_bool>` **is_scanning** **(** **)** const
  70. Returns ``true`` of the filesystem is being scanned.
  71. ----
  72. .. _class_EditorFileSystem_method_scan:
  73. - void **scan** **(** **)**
  74. Scan the filesystem for changes.
  75. ----
  76. .. _class_EditorFileSystem_method_scan_sources:
  77. - void **scan_sources** **(** **)**
  78. Check if the source of any imported resource changed.
  79. ----
  80. .. _class_EditorFileSystem_method_update_file:
  81. - void **update_file** **(** :ref:`String<class_String>` path **)**
  82. Update a file information. Call this if an external program (not Godot) modified the file.
  83. ----
  84. .. _class_EditorFileSystem_method_update_script_classes:
  85. - void **update_script_classes** **(** **)**
  86. Scans the script files and updates the list of custom class names.