|
@@ -78,5 +78,16 @@ Bundle 文件夹的内容每个平台也不一样.
|
|
|
通过 [custom_resources](https://defold.com/manuals/project-settings/#custom-resources) 项, 设置应打包 (同时也被压缩) 进 game.arcd 里的资源.
|
|
|
这类资源可以使用 [sys.load_resource()](https://defold.com/ref/sys/#sys.load_resource) 函数来进行访问.
|
|
|
|
|
|
+## Release 与 Debug
|
|
|
+
|
|
|
+打包游戏时有个选项允许选择创建 debug 还是 release 应用. 这两种应用包类似但是要记得两者存在如下区别:
|
|
|
+
|
|
|
+* Release 包不包含 [性能分析器](/manuals/profiling)
|
|
|
+* Release 包不包含 [屏幕录制器](/ref/stable/sys/#start_record)
|
|
|
+* Release 不输出调用 `print()` 产生的信息也不输出原生扩展产生的任何信息
|
|
|
+* Release 包的 `sys.get_engine_info()` 中的 `is_debug` 被设置为 `false`
|
|
|
+* Release 包调用 `tostring()` 时不会反查 `hash` 值. 也就是说对于一个类型为 `url` 或 `hash` 值的 `tostring()` 不会返回原值字符串而是返回一个数字表示的字符串 (`'hash: [/camera_001]'` 对比 `'hash: [11844936738040519888 (unknown)]'`)
|
|
|
+* Release 包不支持编辑器中设置的用于 [热重载](/manuals/hot-reload) 和类似功能的 target
|
|
|
+
|
|
|
|
|
|
|