first_look_at_the_editor.rst 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. .. This page is only here to introduce the interface to the user broadly. To
  2. cover individual areas in greater detail, write the corresponding pages in
  3. the most appropriate section, and link them. E.g. the animation editor goes
  4. to the animation section. General pages, for instance, about the Project
  5. Manager, should go in the editor manual.
  6. .. _doc_intro_to_the_editor_interface:
  7. First look at Godot's interface
  8. ===============================
  9. This page will give you a brief overview of Godot's interface. We're going to
  10. look at the different main screens and docks to help you situate yourself.
  11. .. seealso:: For a comprehensive breakdown of the editor's interface and how to
  12. use it, see the :ref:`Editor manual <doc_editor_introduction>`.
  13. The Project Manager
  14. -------------------
  15. When you launch Godot, the first window you see is the Project Manager. In the
  16. default tab **Projects**, you can manage existing projects, import or create new
  17. ones, and more.
  18. .. image:: img/editor_intro_project_manager.webp
  19. At the top of the window, there is another tab named **Asset Library**. The first
  20. time you go to this tab you'll see a "Go Online" button. For privacy reasons, the Godot
  21. project manager does not access the internet by default. To change this click
  22. the "Go Online" button. You can change this option later in the settings.
  23. Once your network mode is set to "online", you can search for demo projects in the open
  24. source asset library, which includes many projects developed by the community:
  25. .. image:: img/editor_intro_project_templates.webp
  26. The Project Manager's settings can be opened using the **Settings** menu:
  27. .. image:: img/editor_intro_settings.webp
  28. From here, you can change the editor's language (default is the system language), interface theme, display
  29. scale, network mode, and also the directory naming convention.
  30. .. seealso:: To learn the Project Manager's ins and outs, read
  31. :ref:`doc_project_manager`.
  32. First look at Godot's editor
  33. ----------------------------
  34. When you open a new or an existing project, the editor's interface appears.
  35. Let's look at its main areas:
  36. .. image:: img/editor_intro_editor_empty.webp
  37. By default, along the window's top edge, it features **main menu** on the left, **workspace** switching
  38. buttons in the center (active workspace is highlighted), and **playtest** buttons on the right:
  39. .. image:: img/editor_intro_top_menus.webp
  40. Just below the workspace buttons, the opened :ref:`scenes <doc_key_concepts_overview_scenes>`
  41. as tabs are seen. The plus (+) button right next to the tabs will add a new scene to the project.
  42. With the button on the far right, distraction-free mode can be toggled, which maximizes or restores
  43. the **viewport**'s size by hiding **docks** in the interface:
  44. .. image:: img/editor_intro_scene_selector.webp
  45. In the center, below the scene selector is the **viewport** with its **toolbar** at the top, where you'll
  46. find different tools to move, scale, or lock the scene's nodes (currently the 3D workspace is active):
  47. .. image:: img/editor_intro_3d_viewport.webp
  48. This toolbar changes based on the context and selected node. Here is the 2D toolbar:
  49. .. image:: img/editor_intro_toolbar_2d.webp
  50. Below is the 3D one:
  51. .. image:: img/editor_intro_toolbar_3d.webp
  52. .. seealso:: To learn more on workspaces, read :ref:`doc_intro_to_the_editor_interface_four_screens`.
  53. .. seealso:: To learn more on the 3D viewport and 3D in general, read :ref:`doc_introduction_to_3d`.
  54. On either side of the viewport sit the **docks**. And at the bottom of the
  55. window lies the **bottom panel**.
  56. Let's look at the docks. The **FileSystem** dock lists your project files, including
  57. scripts, images, audio samples, and more:
  58. .. image:: img/editor_intro_filesystem_dock.webp
  59. The **Scene** dock lists the active scene's nodes:
  60. .. image:: img/editor_intro_scene_dock.webp
  61. The **Inspector** allows you to edit the properties of a selected node:
  62. .. image:: img/editor_intro_inspector_dock.webp
  63. .. seealso:: To read more on inspector, see :ref:`doc_editor_inspector_dock`.
  64. .. seealso:: Docks can be customized. Read more on :ref:`doc_customizing_editor_moving_docks`.
  65. The **bottom panel**, situated below the viewport, is the host for the debug
  66. console, the animation editor, the audio mixer, and more. They can take precious
  67. space, that's why they're folded by default:
  68. .. image:: img/editor_intro_bottom_panels.webp
  69. When you click on one, it expands vertically. Below, you can see the animation editor opened:
  70. .. image:: img/editor_intro_bottom_panel_animation.webp
  71. Bottom panels can also be shown or hidden using the shortcuts defined in
  72. **Editor Settings > Shortcuts**, under the **Bottom Panels** category.
  73. .. _doc_intro_to_the_editor_interface_four_screens:
  74. The four main screens
  75. ---------------------
  76. There are four main screen buttons centered at the top of the editor:
  77. 2D, 3D, Script, and Asset Library.
  78. You'll use the **2D screen** for all types of games. In addition to 2D games,
  79. the 2D screen is where you'll build your interfaces.
  80. .. image:: img/editor_intro_workspace_2d.webp
  81. In the **3D screen**, you can work with meshes, lights, and design levels for
  82. 3D games.
  83. .. image:: img/editor_intro_workspace_3d.webp
  84. .. note:: Read :ref:`doc_introduction_to_3d` for more detail about the **3D
  85. main screen**.
  86. The **Script screen** is a complete code editor with a debugger, rich
  87. auto-completion, and built-in code reference.
  88. .. image:: img/editor_intro_workspace_script.webp
  89. Finally, the **Asset Library** is a library of free and open source add-ons, scripts,
  90. and assets to use in your projects.
  91. .. image:: img/editor_intro_workspace_assetlib.webp
  92. .. seealso:: You can learn more about the asset library in
  93. :ref:`doc_what_is_assetlib`.
  94. Integrated class reference
  95. --------------------------
  96. Godot comes with a built-in class reference.
  97. You can search for information about a class, method, property, constant, or
  98. signal by any one of the following methods:
  99. * Pressing :kbd:`F1` (or :kbd:`Opt + Space` on macOS, or :kbd:`Fn + F1` for laptops
  100. with a :kbd:`Fn` key) anywhere in the editor.
  101. * Clicking the "Search Help" button in the top-right of the Script main screen.
  102. * Clicking on the Help menu and Search Help.
  103. * :kbd:`Ctrl + Click` (:kbd:`Cmd + Click` on macOS) on a class name, function name,
  104. or built-in variable in the script editor.
  105. .. image:: img/editor_intro_search_help_button.webp
  106. When you do any of these, a window pops up. Type to search for any item. You can
  107. also use it to browse available objects and methods.
  108. .. image:: img/editor_intro_search_help.webp
  109. Double-click on an item to open the corresponding page in the script main screen.
  110. .. image:: img/editor_intro_help_class_animated_sprite.webp
  111. Alternatively,
  112. * Clicking while pressing the :kbd:`Ctrl` key on a class name, function name,
  113. or built-in variable in the script editor.
  114. * Right-clicking on nodes and choosing **Open Documentation** or choosing **Lookup Symbol**
  115. for elements in script editor will directly open their documentation.