Android和Unity 3D游戏开发
我开始探索使用 unity 3d for android 进行游戏开发。我已经下载了unity 3.3的试用版。我浏览了一些教程。
我有一个问题没有得到解答。在我们使用eclipse开发的普通应用程序中,我们可以通过复制apk文件来部署到手机上。统一3D怎么样?如何将游戏下载到我的手机上。我不想在市场上发布。
I am starting to explore the game development using unity 3d for android. I have downloaded the trial version of unity 3.3. I went through few tutorials.
I have one question that is not answered. In the normal apps which we develop using eclipse, we can deploy onto mobile by copying the apk file. What about unity 3d? How do I get the game onto my phone. I don't want to publish on market.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
可以将您的资产转移到 Eclipse。集成后,您可以通过 Android 手机进行调试。请务必阅读 Unity 主页上的教程。有分步启动指南等等。以下链接值得一看:
似乎官方的“< em>集成”链接已损坏,因此我更新了涵盖相同主题的论坛帖子。不过我建议先尝试使用官方链接。
It is possible to transfer your assets to Eclipse. When it's integrated you can debug via your android phone. Be sure to read the tutorial on Unity's homepage. There is a step by step start-up guide and some more. Following links are worth looking at:
It would seem that the official "integration" link is broken so I updated with a forum post that covers the same topic. However I recommend to try with the official link first.
是的,您只需将 apk 复制到您的设备并安装即可。 Unity 构建一个 apk 文件(并且可以选择使用您提供的密钥库对其进行签名或让它为您生成)。一旦构建了该 apk,您就可以正常部署它。如果您愿意,您甚至可以让它在构建的 apk 中包含一个自定义清单(但默认情况下它会根据您在 unity 项目中的设置生成一个不错的清单)。
Yes, you can simply copy the apk to your device and install it. Unity builds an apk file (and will optionally sign it using a keystore that you provide or let it generate for you). Once it has built that apk you can deploy it normally. You can even have it include a customized manifest in the apk that it builds if you want to (but it generates a nice one from your settings in the unity project by default).
据我了解,有两种方法:
adb install
安装在您的设备上的 apk 文件There are two methods for this, as far i understand,
adb install <apk file path and name>
转到文件
-建造
-选择android平台(你的电脑必须有android开发套件)
-保存你的apk
go to file
-build
-select android platform(your pc has to have android development kit)
-save your apk
由于它仍然没有答案,我尝试结束这个问题。
首先,当前版本的 Unity 5.2 比版本 3.3 更强大。原问题中提到。
同样的方式。 Unity 允许您在本地计算机上将版本发布为 *.apk,然后您只需将其复制到手机并安装即可。
更酷的是,现在您可以调试在手机上运行的应用程序。您必须将 Unity Remote 安装到手机并运行。现在您可以像平常一样设置断点和调试。
如果您改变主意并去市场上发布 - Unity 将签署您的 *.apk
希望这对某人有帮助,祝您好运!
As it is still unanswered I try to close this question
First of all, current version of Unity 5.2 is much more powerfull than version 3.3. mentioned in original question.
The same way. Unity allows you to publish build as *.apk on ocal machine and then you can just copy it to your phone and install it.
What is more cool, now you can debug your application running on phone. You have to install Unity Remote to the phone and run. Now you can set breakpoints and debug as normally.
If you change your mind and go to publish on Market - Unity will sign your *.apk
Hope this helps someone, good luck!
与通过 Eclipse 生成 apk 的方式相同,您需要构建项目。为此,android sdk和jdk应该安装在您的系统中,并且您需要在unity首选项中显示这些路径,然后您需要一个google密钥库,并且需要在发布者设置中使用该密钥库登录,然后您就可以构建apk 将存储在您的本地系统中,您可以将其复制到您的手机并安装 apk 文件。
The Same way you generate the apk through Eclipse like that in unity you need to build the project. For that android sdk and jdk should be installed in your system and u need to show those path in the unity Preferences then u need a google keystore and need to sign in with that key store in the Publisher settings and then u are able to build the apk which will be store in your local system and you can copy that to your mobile and install the apk file.