gpt4 book ai didi

unity3d - Unity Microgame WebGL 上传不工作(500 内部服务器)

转载 作者:行者123 更新时间:2023-12-05 04:28:56 26 4
gpt4 key购买 nike

我正在尝试完成 Unity Essentials 教程。 Microgame 教程的最后一步是发布游戏。在过去的三天里,我一直在尝试按照指示在 Unity 中使用 WebGL 上传 Microgame,但无济于事。截至目前,它表示存在内部服务器错误(代码 500)。有谁知道会发生什么? enter image description here我在 SO 上找到了一篇相关帖子,他们说这是一个与 Unity 无关的问题。但是,在我现在遇到的内部 500 错误出现之前,我的 Unity Publishing 加载栏会在不同的小游戏上卡住在 2%。

我尝试过的事情:重新启动计算机,重新安装 unity hub 和编辑器,删除项目并重新启动,尝试不同的 Microgame,并等待三天。

最佳答案

您可以尝试更改压缩格式,和/或启用解压缩回退。这些配置可以在 Player Settings

中找到

编辑项目设置播放器

WebGL 有 3 种压缩设置

gzip This is the default option. Gzip files are bigger than Brotli files, but faster to build, and natively supported by all browsers over both HTTP and HTTPS.

Brotli Brotli compression offers the best compression ratios. Brotli compressed files are smaller than gzip, but take a longer time to compress, which increases your iteration times on release builds. Chrome and Firefox only natively support Brotli compression over HTTPS.

Disabled Disables compression. Use this option if you want to implement your own compression in post-processingscripts. You should also use it if you plan to use static compression on the hosting server.

此外,启用减压回退可能是正确的选择。

When you enable decompression fallback, Unity adds a .unityweb extension to the build files. You should consider using Decompression Fallback if you have less experience with server configuration, or if server configuration is unavailable to you.

Note: Using this option results in a larger loader size and a less efficient loading scheme for the build files.

Unity Reference

关于unity3d - Unity Microgame WebGL 上传不工作(500 内部服务器),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72468672/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com