Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
EditorExportPlatform¶
继承: RefCounted < Object
派生: EditorExportPlatformAndroid, EditorExportPlatformIOS, EditorExportPlatformMacOS, EditorExportPlatformPC, EditorExportPlatformWeb
标识一个支持的导出平台,并在内部提供导出到该平台的功能。
描述¶
基础资源,提供从编辑器将项目的发布构建导出到平台的功能。存储特定于平台的元数据,例如平台的名称和支持的功能,并执行项目、PCK 文件和 ZIP 文件的导出。使用在项目导出时提供的平台导出模板。
在 EditorExportPlugin 的脚本中用于配置特定于平台的场景和资源的定制。有关详细信息,请参阅 EditorExportPlugin._begin_customize_scenes 和 EditorExportPlugin._begin_customize_resources。
教程¶
方法¶
get_os_name ( ) const |
方法说明¶
String get_os_name ( ) const
以友好字符串的形式,返回由该 EditorExportPlatform 类处理的导出操作系统的名称。可能的返回值为 Windows
、Linux
、macOS
、Android
、iOS
、和 Web
。