EditorInterface.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="EditorInterface" inherits="Node" category="Core" version="3.0.alpha.custom_build">
  3. <brief_description>
  4. Editor interface and main components.
  5. </brief_description>
  6. <description>
  7. Editor interface. Allows saving and (re-)loading scenes, rendering mesh previews, inspecting and editing resources and objects and provides access to [EditorSettings], [EditorFileSystem], [EditorResourcePreview]\ er, [ScriptEditor], the editor viewport, as well as information about scenes. Also see [EditorPlugin] and [EditorScript].
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="edit_resource">
  15. <return type="void">
  16. </return>
  17. <argument index="0" name="resource" type="Resource">
  18. </argument>
  19. <description>
  20. Edits the given [Resource].
  21. </description>
  22. </method>
  23. <method name="get_base_control">
  24. <return type="Control">
  25. </return>
  26. <description>
  27. Returns the base [Control].
  28. </description>
  29. </method>
  30. <method name="get_edited_scene_root">
  31. <return type="Node">
  32. </return>
  33. <description>
  34. Returns the edited scene's root [Node].
  35. </description>
  36. </method>
  37. <method name="get_editor_settings">
  38. <return type="EditorSettings">
  39. </return>
  40. <description>
  41. Returns the [EditorSettings].
  42. </description>
  43. </method>
  44. <method name="get_editor_viewport">
  45. <return type="Control">
  46. </return>
  47. <description>
  48. Returns the editor [Viewport].
  49. </description>
  50. </method>
  51. <method name="get_open_scenes" qualifiers="const">
  52. <return type="Array">
  53. </return>
  54. <description>
  55. Returns an [Array] of the currently opened scenes.
  56. </description>
  57. </method>
  58. <method name="get_resource_filesystem">
  59. <return type="EditorFileSystem">
  60. </return>
  61. <description>
  62. Returns the [EditorFileSystem].
  63. </description>
  64. </method>
  65. <method name="get_resource_previewer">
  66. <return type="EditorResourcePreview">
  67. </return>
  68. <description>
  69. Returns the [EditorResourcePreview]\ er.
  70. </description>
  71. </method>
  72. <method name="get_script_editor">
  73. <return type="ScriptEditor">
  74. </return>
  75. <description>
  76. Returns the [ScriptEditor].
  77. </description>
  78. </method>
  79. <method name="get_selection">
  80. <return type="EditorSelection">
  81. </return>
  82. <description>
  83. Returns the [EditorSelection].
  84. </description>
  85. </method>
  86. <method name="inspect_object">
  87. <return type="void">
  88. </return>
  89. <argument index="0" name="object" type="Object">
  90. </argument>
  91. <argument index="1" name="for_property" type="String" default="&quot;&quot;">
  92. </argument>
  93. <description>
  94. Shows the given property on the given [code]object[/code] in the Editor's Inspector dock.
  95. </description>
  96. </method>
  97. <method name="make_mesh_previews">
  98. <return type="Array">
  99. </return>
  100. <argument index="0" name="meshes" type="Array">
  101. </argument>
  102. <argument index="1" name="preview_size" type="int">
  103. </argument>
  104. <description>
  105. Returns mesh previews rendered at the given size as an [Array] of [Texture]s.
  106. </description>
  107. </method>
  108. <method name="open_scene_from_path">
  109. <return type="void">
  110. </return>
  111. <argument index="0" name="scene_filepath" type="String">
  112. </argument>
  113. <description>
  114. Opens the scene at the given path.
  115. </description>
  116. </method>
  117. <method name="reload_scene_from_path">
  118. <return type="void">
  119. </return>
  120. <argument index="0" name="scene_filepath" type="String">
  121. </argument>
  122. <description>
  123. Reloads the scene at the given path.
  124. </description>
  125. </method>
  126. <method name="save_scene">
  127. <return type="int" enum="Error">
  128. </return>
  129. <description>
  130. Saves the scene. Returns either OK or ERR_CANT_CREATE. See [@Global Scope] constants.
  131. </description>
  132. </method>
  133. <method name="save_scene_as">
  134. <return type="void">
  135. </return>
  136. <argument index="0" name="path" type="String">
  137. </argument>
  138. <argument index="1" name="with_preview" type="bool" default="true">
  139. </argument>
  140. <description>
  141. Saves the scene as a file at [code]path[/code].
  142. </description>
  143. </method>
  144. </methods>
  145. <constants>
  146. </constants>
  147. </class>