Work in progress

The content of this page was not yet updated for Godot 4.2 and may be outdated. If you know how to improve this page or you can confirm that it's up to date, feel free to open a pull request.

Managing editor features

Введение

В некоторых ситуациях может быть желательно ограничить, какие функции могут быть использованы в редакторе Godot. Например, дизайнер пользовательского интерфейса в команде, которому не нужно видеть 3D-функции, или педагог постепенно добавляет функции для студентов. Godot имеет встроенную в систему под названием «профили пользователя», для управления ограничениями.

With feature profiles, major features and nodes can be hidden from the editor. This only hides parts of the interface and does not actually remove support for these features, so scenes and scripts relying on those features will still work fine. This also means feature profiles are not an optimization technique. For information on how to optimize Godot see Производительность.

Creating a profile

To manage editor features go to Editor > Manage Editor Features. This will open the Manage Editor Feature Profiles window. By default there will be no profile. Click on Create Profile and give it a name. You will then see a list of all the features in the Godot editor.

../../_images/configure_profile.png

The first section allows major editor features to be removed, such as the 3D editor or scripting editor. Below the main features is every class and node in Godot, which can be disabled as well. Click on a node and all of its properties and options will be listed in the Extra Items box, these can all be individually disabled.

../../_images/node_features.png

Sharing a profile

To share profiles between editors click on the Export button. Save the custom profile somewhere as a .profile file. To use this in another editor open that editor's Manage Editor Feature Profiles window and click import, then select the .profile file.

Однако этот процесс потенциально громоздок, если большое количество компьютеров нуждается в пользовательских профилях. В качестве альтернативы вы можете включить автономный режим для Godot, который позволяет поместить всю конфигурацию редактора в ту же папку, что и бинарный файл редактора. Подробности смотрите в Self-contained mode.