- Home /
How to package resources which are in a Jar file
I'm working for a Android project. I've a trouble that is I can't let Unity package my resouces in jar file
what 's more.my jar file structure like this:
-xxx.jar
-asset
-drawable
-x.png
-com.x
-.....
When I use this jar in normal Android project,the x.png will be packaged in a folder named asset of a apk.
What should i do to package this resources in Unity?
Thanks very much!
Answer by liortal · Oct 22, 2014 at 06:07 AM
Unity does not compile your Java code, it expects you to give it a pre-compiled version of your project.
For Android, you can use the "Android Library" project type (if you work in Eclipse, you can set it in the project's properties).
After letting Eclipse compile your project, you can copy that folder over to Unity (to a subfolder under Plugins/Android), Unity will then pick up all that is needed from your project.
This is the correct answer - use Android Library projects if you want resources to be merged.