Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Abboodd · Apr 26, 2016 at 08:21 AM · androidandroid buildlibraries

Which files in a Unity Android build are specific to the actual game

Hello all,

I understand that when my Android Unity project is compiled, it is compiled into a set of libraries, and supplied with a set of Java and Android wrappers to be able to call them.

My question is as follows:

Let's say, that I want to make an Android app which contains many games. I want to replace one game with another based on some parameters. Which of those library files should I change to change the game?

There are many files that are created, for example: libmain.so libmono.so UnityEngine.dll generalgamemanager

There is also the jar file: unity-classes.jar

And many other files.

My question is, which files are general Unity files that are the same for every Unity project, and which files contain game-specific data, that if I replace with the files from another game, I would play the other game?

If anything in the question is not clear please ask me to elaborate.

Thank you for your efforts.

Regards,

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image goviram · Jun 28, 2017 at 12:29 PM 0
Share

@Abboodd I have question regarding this , You have replaced the file in assets folder. Is there way that we can load these files in bin/ folder from SD card rather than assets folder inside the apk.

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Abboodd · Apr 27, 2016 at 08:27 AM

I found the solution, but I'm not sure if it is 100% correct. Please if you know better, correct me.

I created two simple projects with basic assets and simple scripts, then I exported them into Android projects, and used the diff command to find the differences.

I found out that the files that were different were all the files in the assets/bin/Data folder, except for the Managed folder, where only Assembly-CSharp.dll was different.

So I went ahead, I replaced all the files and folders in the assets/bin/Data folder of the first project, with those of the second project, but I kept the Managed folder the same and only replaced Assembly-CSharp.dll

The result when I ran the first project on my Android? The second project showed up :)

So to sum up, if you want to replace one Unity game with another in an Android project, you need to replace the following:

  • assets/bin/Data/Resources folder

  • assets/bin/Data/globalgamemanagers

  • assets/bin/Data/globalgamemanagers.assets

  • assets/bin/Data/level0

  • assets/bin/Data/settings.xml (even though I don't think it needs to be replaced)

  • assets/bin/Data/sharedassets0.assets

  • assets/bin/Data/splash.png (well....)

  • assets/bin/Data/unity default resources (Well that one wasn't different between the two projects, but I cannot confirm if it will always be the case)

  • assets/bin/Data/Managed/Assembly-CSharp.dll

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Gradle Build error : Could not resolve all files for configuration ':releaseCompileClasspath'. 1 Answer

Gradle build error 1 Answer

Canvas buttons become invisible on android build when adding material 1 Answer

OpenCVForUnity Core.Flip function not working in Unity Android Build 0 Answers

Android Build is flickering and breaking the game 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges