我想在抖音或facebook上发布小游戏。2013年简单的做过unity,时隔多年。
我发现有两个选择,一是instant game,二是 project tiny,都是可以发布webgl版本。我认为的他们的区别:
tiny: 国外团队开发,特点是使用ecs?dots来减小体积(和提高运行速度)。 可以运行在2020版本unity,16个月没有更新了
instant: 国内团队开发,适配抖音?头条几个国内app的小游戏开发 只运行在unity2019的几个特定版本,今年有更新。 使用autostreaming来从网络下载数据,减小包大小。 ?
从GitHub - Unity-Technologies/ProjectTinySamples: Samples for Project Tiny
下载demo,demo用的是2020.1.17f1。
在浏览器输入 unityhub://2020.1.17f1/9957aee8edc2 即可安装。
打开项目,在project面板,进入Asset->Build,点击Asmjs,然后在Inspetor面板点build即可。
?包太大了。不知道instantgame如何。
?
都打算提问了的,突然发现了方法
- ?I downloaded project from?https://github.com/Unity-Technologies/ProjectTinySamples(Date 2022/5/5)
- Open project "Tiny3D" with unity 2020.1.17 .
- Click File -> build and run then saw errors like "The name 'GameSaveNativeCalls' does not exist?"
- Click Project panel, Build -> DOTS Runtime Build Configuration, click "build and run" at inspector, got error "ArgumentException: No DotsRuntimeRootAssembly component specified. Please make sure your build configuration specifies one."
- I checked the document, It said "Added with 0.25, you can now use Build & Run (from the Build Configuration inspector) for Web builds:", but I didn't see anything similar as the picture in the document.
|