Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

管理编辑器功能

前言

In certain situations, it may be desirable to limit what features can be used in the Godot editor. For example, a UI designer on a team who doesn't need to see 3D features, or an educator slowly introducing features to students. Godot has a built-in system called "feature profiles" to do this.

使用功能配置文件,可以从编辑器中隐藏主要功能和节点。这只会隐藏部分界面,而不会真正移除对这些功能的支持,因此依赖这些功能的场景和脚本仍将正常工作。这也意味着功能配置文件不是一种优化技术。有关如何优化 Godot 的信息,请参阅《性能》。

创建配置

要管理编辑器功能,请前往编辑器 > 管理编辑器功能。这样就打开了管理编辑器功能配置窗口。默认是没有配置的。请点击创建配置文档并为其命名。然后你就会看到 Godot 编辑器中所有功能的列表了。

../../_images/configure_profile.png

第一个部分可以移除主要的编辑器功能,比如 3D 编辑器或脚本编辑器。主要功能的下方是 Godot 中的所有类,也可以禁用。点击节点后,会在额外项目中列出其属性和选项,可以单独禁用。

../../_images/node_features.png

分享配置

要在编辑器之间分享配置,请点击导出按钮。请将自定义配置保存为 .profile 文件。要在其他编辑器中使用,请打开其管理编辑器配置窗口并点击导入,然后选择该 .profile 文件。

如果大量电脑都需要自定义配置,这个过程可能会比较繁琐。另一种办法是启用 Godot 的自包含模式,可以将所有编辑器配置放在与编辑器二进制文件同一文件夹中。详情请参阅 自包含模式