class_editorinspector.rst 4.6 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 the Sprite2D 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:`ScrollMode<enum_ScrollContainer_ScrollMode>` | horizontal_scroll_mode | ``0`` (overrides :ref:`ScrollContainer<class_ScrollContainer_property_horizontal_scroll_mode>`) |
  18. +----------------------------------------------------+------------------------+-------------------------------------------------------------------------------------------------+
  19. Signals
  20. -------
  21. .. _class_EditorInspector_signal_edited_object_changed:
  22. - **edited_object_changed** **(** **)**
  23. Emitted when the object being edited by the inspector has changed.
  24. ----
  25. .. _class_EditorInspector_signal_object_id_selected:
  26. - **object_id_selected** **(** :ref:`int<class_int>` id **)**
  27. 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.
  28. ----
  29. .. _class_EditorInspector_signal_property_deleted:
  30. - **property_deleted** **(** :ref:`String<class_String>` property **)**
  31. Emitted when a property is removed from the inspector.
  32. ----
  33. .. _class_EditorInspector_signal_property_edited:
  34. - **property_edited** **(** :ref:`String<class_String>` property **)**
  35. Emitted when a property is edited in the inspector.
  36. ----
  37. .. _class_EditorInspector_signal_property_keyed:
  38. - **property_keyed** **(** :ref:`String<class_String>` property, :ref:`Variant<class_Variant>` value, :ref:`bool<class_bool>` advance **)**
  39. 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.
  40. ----
  41. .. _class_EditorInspector_signal_property_selected:
  42. - **property_selected** **(** :ref:`String<class_String>` property **)**
  43. Emitted when a property is selected in the inspector.
  44. ----
  45. .. _class_EditorInspector_signal_property_toggled:
  46. - **property_toggled** **(** :ref:`String<class_String>` property, :ref:`bool<class_bool>` checked **)**
  47. Emitted when a boolean property is toggled in the inspector.
  48. \ **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.
  49. ----
  50. .. _class_EditorInspector_signal_resource_selected:
  51. - **resource_selected** **(** :ref:`Resource<class_Resource>` resource, :ref:`String<class_String>` path **)**
  52. Emitted when a resource is selected in the inspector.
  53. ----
  54. .. _class_EditorInspector_signal_restart_requested:
  55. - **restart_requested** **(** **)**
  56. 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.
  57. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  58. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  59. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  60. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  61. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  62. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`