0

I have a .properties file that is required by some android java unity plugin that I am writing. I need to add this file to the unity app's package somehow, so once the unity IDE builds the .apk, the file is located in the root of the apk's assets folder. Where and how do I place this file in the Unity IDE? I tried putting it under Assets, but I inspected the resulting .apk file and the file did not make it there..

any ideas? tnx

4

1 回答 1

2

您有两个选项可以包含在运行时可访问的文件:

如果您不需要 Unity3D 来处理它,您的 .properties 文件可能应该位于 StreamingAssets 文件夹中。Unity3D 将优化资源文件夹中的资产。例如,必须在 IDE 中将图像设置为 GUI 或 Texture。StreamingAssets 文件夹中的资产是原始的,未经 Unity3D IDE 处理。所以一个 png 在运行时仍然是一个常规的 png。StreamingAssets 是我们存储不希望 Unity3D 重新编码的 mp4 移动视频的地方。

于 2013-05-19T03:16:27.533 回答