Вступ до редактора Godot¶
This tutorial will run you through Godot’s interface. We’re going to look at the Project Manager, docks, workspaces and everything you need to know to get started with the engine.
When you launch Godot, the first window you’ll see is the Project Manager. Since you have no projects there will be a popup asking if you want to open the asset library, just click cancel, we’ll look at it later.
Now you should see the project manager. It lets you create, remove, import or play game projects.
У верхньому правому куті вікна розташовано спадне меню, за допомогою якого ви можете змінити мову інтерфейсу редактора.
From the Templates tab you can download open source project templates and demos from the Asset Library to help you get started faster. Just select the template or demo you want, click download, once it’s finished downloading click install and choose where you want the project to go. You can learn more about it in About the Asset Library.
Створення або імпортування проекту¶
To create a new project, click the
New Project button on the right. Here
you give it a name, choose an empty folder on your computer to save it to,
and choose a renderer.
Click the Browse button to open Godot’s file browser and pick a location or type the folder’s path in the Project Path field.
When you see the green tick on the right, it means the engine detects an
empty folder. You can also click the
Create Folder button next to your
project name and an empty folder will be created with that name for the project.
Finally, you need to choose which renderer to use (OpenGL ES 3.0 or OpenGL ES 2.0). The advantages and disadvantages of each are listed to help you choose, and you can refer to Differences between GLES2 and GLES3 for more details. Note that you can change the backend from the project settings if you change your mind later on. For this tutorial either backend is fine.
Once you are done click
Create & Edit. Godot will create
the project for you and open it in the editor.
The next time you open the project manager, you’ll see your new project in the list. Double click on it to open it in the editor.
You can import existing projects in a similar way, using the Import
button. Locate the folder that contains the project or the
project.godot file to import and edit it.
When the folder path is correct, you’ll see a green checkmark.
Ваш перший погляд на редактор Godot¶
Welcome to Godot! With your project open, you should see the editor’s interface with empty docks on the right side.
At the top, from left to right, you can see the main menus, the workspaces, and the playtest buttons.
On the bottom left side, you have the FileSystem dock, where you’ll manage your project files and assets.
On the right side, you’ll find the Scene dock, which lists the active scene’s content and the Inspector in the bottom right corner.
In the center, you have the Toolbar at the top, where you’ll find tools to move, scale or lock your scene’s objects. It changes as you jump to different workspaces.
The Bottom Panel is the host for the debug console, the animation editor, the audio mixer… They are wide and can take precious space. That’s why they’re folded by default.
You can see four workspace buttons at the top: 2D, 3D, Script and AssetLib.
You’ll use the 2D workspace for all types of games. In addition to 2D games, the 2D workspace is where you’ll build your interfaces. Press F1 to access it.
In the 3D workspace, you can work with meshes, lights, and design levels for 3D games. Press F2 to access it.
Notice the perspective button under the toolbar, it opens a list of options related to the 3D viewport.
Read Введення в 3D for more detail about 3D workspace.
The Script workspace is a complete code editor with a debugger, rich auto-completion, and built-in code reference. Press F3 to access it, and F4 to search the reference.
Finally the AssetLib is a library of Free add-ons, scripts and assets to use in your projects.
Modify the interface¶
Godot’s interface lives in a single window. You cannot split it across multiple screens although you can work with an external code editor like Atom or Visual Studio for instance.
Move and resize docks¶
Click and drag on the edge of any dock or panel to resize it horizontally or vertically.
Click the three-dotted icon at the top of any dock to change its location.
Go to the
Editor menu and
Editor Settings to fine-tune the look
and feel of the editor.