EditorFileSystem.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="EditorFileSystem" inherits="Node" version="3.3">
  3. <brief_description>
  4. Resource filesystem, as the editor sees it.
  5. </brief_description>
  6. <description>
  7. This object holds information of all resources in the filesystem, their types, etc.
  8. [b]Note:[/b] This class shouldn't be instantiated directly. Instead, access the singleton using [method EditorInterface.get_resource_filesystem].
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <methods>
  13. <method name="get_file_type" qualifiers="const">
  14. <return type="String">
  15. </return>
  16. <argument index="0" name="path" type="String">
  17. </argument>
  18. <description>
  19. Gets the type of the file, given the full path.
  20. </description>
  21. </method>
  22. <method name="get_filesystem">
  23. <return type="EditorFileSystemDirectory">
  24. </return>
  25. <description>
  26. Gets the root directory object.
  27. </description>
  28. </method>
  29. <method name="get_filesystem_path">
  30. <return type="EditorFileSystemDirectory">
  31. </return>
  32. <argument index="0" name="path" type="String">
  33. </argument>
  34. <description>
  35. Returns a view into the filesystem at [code]path[/code].
  36. </description>
  37. </method>
  38. <method name="get_scanning_progress" qualifiers="const">
  39. <return type="float">
  40. </return>
  41. <description>
  42. Returns the scan progress for 0 to 1 if the FS is being scanned.
  43. </description>
  44. </method>
  45. <method name="is_scanning" qualifiers="const">
  46. <return type="bool">
  47. </return>
  48. <description>
  49. Returns [code]true[/code] of the filesystem is being scanned.
  50. </description>
  51. </method>
  52. <method name="scan">
  53. <return type="void">
  54. </return>
  55. <description>
  56. Scan the filesystem for changes.
  57. </description>
  58. </method>
  59. <method name="scan_sources">
  60. <return type="void">
  61. </return>
  62. <description>
  63. Check if the source of any imported resource changed.
  64. </description>
  65. </method>
  66. <method name="update_file">
  67. <return type="void">
  68. </return>
  69. <argument index="0" name="path" type="String">
  70. </argument>
  71. <description>
  72. Update a file information. Call this if an external program (not Godot) modified the file.
  73. </description>
  74. </method>
  75. <method name="update_script_classes">
  76. <return type="void">
  77. </return>
  78. <description>
  79. Scans the script files and updates the list of custom class names.
  80. </description>
  81. </method>
  82. </methods>
  83. <signals>
  84. <signal name="filesystem_changed">
  85. <description>
  86. Emitted if the filesystem changed.
  87. </description>
  88. </signal>
  89. <signal name="resources_reimported">
  90. <argument index="0" name="resources" type="PoolStringArray">
  91. </argument>
  92. <description>
  93. Emitted if a resource is reimported.
  94. </description>
  95. </signal>
  96. <signal name="resources_reload">
  97. <argument index="0" name="resources" type="PoolStringArray">
  98. </argument>
  99. <description>
  100. Emitted if at least one resource is reloaded when the filesystem is scanned.
  101. </description>
  102. </signal>
  103. <signal name="sources_changed">
  104. <argument index="0" name="exist" type="bool">
  105. </argument>
  106. <description>
  107. Emitted if the source of any imported file changed.
  108. </description>
  109. </signal>
  110. </signals>
  111. <constants>
  112. </constants>
  113. </class>