ResourceLoader.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ResourceLoader" inherits="Object" category="Core" version="3.1">
  3. <brief_description>
  4. Resource Loader.
  5. </brief_description>
  6. <description>
  7. Resource Loader. This is a static object accessible as [code]ResourceLoader[/code]. GDScript has a simplified load() function, though.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="exists">
  15. <return type="bool">
  16. </return>
  17. <argument index="0" name="path" type="String">
  18. </argument>
  19. <argument index="1" name="type_hint" type="String" default="&quot;&quot;">
  20. </argument>
  21. <description>
  22. </description>
  23. </method>
  24. <method name="get_dependencies">
  25. <return type="PoolStringArray">
  26. </return>
  27. <argument index="0" name="path" type="String">
  28. </argument>
  29. <description>
  30. </description>
  31. </method>
  32. <method name="get_recognized_extensions_for_type">
  33. <return type="PoolStringArray">
  34. </return>
  35. <argument index="0" name="type" type="String">
  36. </argument>
  37. <description>
  38. Return the list of recognized extensions for a resource type.
  39. </description>
  40. </method>
  41. <method name="has">
  42. <return type="bool">
  43. </return>
  44. <argument index="0" name="path" type="String">
  45. </argument>
  46. <description>
  47. </description>
  48. </method>
  49. <method name="has_cached">
  50. <return type="bool">
  51. </return>
  52. <argument index="0" name="path" type="String">
  53. </argument>
  54. <description>
  55. </description>
  56. </method>
  57. <method name="load">
  58. <return type="Resource">
  59. </return>
  60. <argument index="0" name="path" type="String">
  61. </argument>
  62. <argument index="1" name="type_hint" type="String" default="&quot;&quot;">
  63. </argument>
  64. <argument index="2" name="no_cache" type="bool" default="false">
  65. </argument>
  66. <description>
  67. </description>
  68. </method>
  69. <method name="load_interactive">
  70. <return type="ResourceInteractiveLoader">
  71. </return>
  72. <argument index="0" name="path" type="String">
  73. </argument>
  74. <argument index="1" name="type_hint" type="String" default="&quot;&quot;">
  75. </argument>
  76. <description>
  77. Load a resource interactively, the returned object allows to load with high granularity.
  78. </description>
  79. </method>
  80. <method name="set_abort_on_missing_resources">
  81. <return type="void">
  82. </return>
  83. <argument index="0" name="abort" type="bool">
  84. </argument>
  85. <description>
  86. Change the behavior on missing sub-resources. Default is to abort load.
  87. </description>
  88. </method>
  89. </methods>
  90. <constants>
  91. </constants>
  92. </class>