class_editorinspector.rst 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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 EditorInspector.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_EditorInspector:
  6. EditorInspector
  7. ===============
  8. **Inherits:** :ref:`ScrollContainer<class_ScrollContainer>` **<** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. A tab used to edit properties of the selected node.
  10. Description
  11. -----------
  12. The editor inspector is by default located on the right-hand side of the editor. It's used to edit the properties of the selected node. For example, you can select a node such as :ref:`Sprite<class_Sprite>` then edit its transform through the inspector tool. The editor inspector is an essential tool in the game development workflow.
  13. **Note:** This class shouldn't be instantiated directly. Instead, access the singleton using :ref:`EditorInterface.get_inspector<class_EditorInterface_method_get_inspector>`.
  14. Properties
  15. ----------
  16. +-------------------------+---------------------------+-------------------------------+
  17. | :ref:`bool<class_bool>` | scroll_horizontal_enabled | ``false`` *(parent override)* |
  18. +-------------------------+---------------------------+-------------------------------+
  19. Methods
  20. -------
  21. +------+------------------------------------------------------------------+
  22. | void | :ref:`refresh<class_EditorInspector_method_refresh>` **(** **)** |
  23. +------+------------------------------------------------------------------+
  24. Signals
  25. -------
  26. .. _class_EditorInspector_signal_object_id_selected:
  27. - **object_id_selected** **(** :ref:`int<class_int>` id **)**
  28. Emitted when the Edit button of an :ref:`Object<class_Object>` has been pressed in the inspector. This is mainly used in the remote scene tree inspector.
  29. ----
  30. .. _class_EditorInspector_signal_property_edited:
  31. - **property_edited** **(** :ref:`String<class_String>` property **)**
  32. Emitted when a property is edited in the inspector.
  33. ----
  34. .. _class_EditorInspector_signal_property_keyed:
  35. - **property_keyed** **(** :ref:`String<class_String>` property **)**
  36. Emitted when a property is keyed in the inspector. Properties can be keyed by clicking the "key" icon next to a property when the Animation panel is toggled.
  37. ----
  38. .. _class_EditorInspector_signal_property_selected:
  39. - **property_selected** **(** :ref:`String<class_String>` property **)**
  40. Emitted when a property is selected in the inspector.
  41. ----
  42. .. _class_EditorInspector_signal_property_toggled:
  43. - **property_toggled** **(** :ref:`String<class_String>` property, :ref:`bool<class_bool>` checked **)**
  44. Emitted when a boolean property is toggled in the inspector.
  45. **Note:** This signal is never emitted if the internal ``autoclear`` property enabled. Since this property is always enabled in the editor inspector, this signal is never emitted by the editor itself.
  46. ----
  47. .. _class_EditorInspector_signal_resource_selected:
  48. - **resource_selected** **(** :ref:`Object<class_Object>` res, :ref:`String<class_String>` prop **)**
  49. Emitted when a resource is selected in the inspector.
  50. ----
  51. .. _class_EditorInspector_signal_restart_requested:
  52. - **restart_requested** **(** **)**
  53. Emitted when a property that requires a restart to be applied is edited in the inspector. This is only used in the Project Settings and Editor Settings.
  54. Method Descriptions
  55. -------------------
  56. .. _class_EditorInspector_method_refresh:
  57. - void **refresh** **(** **)**
  58. Refreshes the inspector.
  59. **Note:** To save on CPU resources, calling this method will do nothing if the time specified in ``docks/property_editor/auto_refresh_interval`` editor setting hasn't passed yet since this method was last called. (By default, this interval is set to 0.3 seconds.)
  60. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  61. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  62. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`