Unity as a Library
Once you have eclipse installed and up to date you have to follow a few steps to get your unity project set up as a library in eclipse.
- 创建一个空的unity3d工程,然后使用android平台进行编译。
- 切换到新工程的目录中,找到Temp目录,这个目录下有:staging area.
- 拷贝目录staging area到其他某个目录下,注意此目录不要放置于eclipse工作空间中。
- 打开eclipse并创建一个android的项目。
- 在创建项目的引导中,选择Android Project并点击Next按钮
- 这一步是工程的library信息, This will be the library part of your project so name the project accordingly to avoid any confusion.
- You will also want to select the option to create project from an existing source. This source being the files you copied to the folder you are using as a holding area. If you select the Staging Area folder then click OK you will see that eclipse has filled in the relevant fields for you.
- click finish on the project creation wizard.
- Finally right click the root folder in the

本文详细介绍了如何将Unity3D项目设置为Eclipse中的库,并创建一个与之链接的Java项目,以实现Android应用程序的开发。通过在Eclipse中将Unity项目设为库,创建Java项目,同步库文件,移动Assets资源,最终实现Unity内容在Android设备上的运行。
最低0.47元/天 解锁文章
1509

被折叠的 条评论
为什么被折叠?



