如何在由unity3d生成的android apk的根目录中有一个文件? [英] how to have a file in the root of the android apk generated by unity3d?
问题描述
我有一个文件eula.zip,当我从unity3d进行构建时,我想将其放置在android apk的根目录中.
I have a file eula.zip which I want to be in root of the android apk when i build from unity3d.
在unity 4.0中,我可以通过导出为android项目并将zip文件粘贴到
android项目根目录,然后从Eclipse构建apk
in unity 4.0 I can do this by exporting as android project and pasting the zip file in
android project root and then building apk from eclipse
但我必须在unity3.5中进行操作,
我试图将其放置在以下位置-
资产文件夹
插件文件夹
插件/Android文件夹
这些缝隙都不起作用
but I have to do it in unity3.5,
I have tried to place it in following locations-
Assets folder
plugins folder
Plugins/Android folder
none of these seam to work
该如何做才能使eula.zip位于统一的android apk的根目录中.
what should do to have eula.zip in the root of the android apk from unity.
推荐答案
我知道这篇帖子已经很老了,但是它仍然出现在Google搜索中,并且我找到了一种优雅的解决方案:
I know this post is quite old, but it still shows up in the Google search and I found an elegant solution:
只需将文件直接复制到项目的src目录中(而不是复制到com.whatever ...包中).
Simply copy the files directly into your project's src directory (not into the com.whatever... package).
这篇关于如何在由unity3d生成的android apk的根目录中有一个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!