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 Jix · Mar 31, 2016 at 11:04 PM · metamergemerging

How to merge 2 projects into one

I am having problem with combining 2 projects together. I have 2 games, I want to put them in one project so they become one game that has both games.

My problem is that I used some the assets of the first game in the second game and then I made the necessary changes in these assets on the second game.

I had no idea that this would backfire on me! When I try to put the files of the second project in the first one some prefabs and scenes of the 2nd project are linked with scripts from the first project! Although they are different in content and name!

I tried a different approach by exporting the 2nd project files, but when I open the package I find that Unity will override the assets in the 1st project.

I tried another approach by deleting all meta files in the 2nd project and copy the assets to the first project... still the same problem!

What's really confusing me is that both projects have different meta files

Help!

Comment
Add comment · Show 2
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 aida12_99 · Mar 31, 2016 at 11:21 PM 0
Share

How many assets are common between the two project? Can you rename the assets?

avatar image Jix aida12_99 · Mar 31, 2016 at 11:24 PM 0
Share

I did rename them all. still no success :(

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Abhiroop-Tandon · Apr 01, 2016 at 08:16 AM

It is a very difficult task and it will take time, you will need to be patient. What you can do is bring assets one by one, export some import some and do this gradually. If the game logic is same in both the games and only minor changes are there, what you can do is export the things removing dependencies so that at least the GameObjects of the second game are there and you will only need to connect them by your script or however it works. Just look whats common in both the projects and dont import/export that, remove dependencies and connect them afterwards. Hope this helps !!

Comment
Add comment · Show 3 · 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
avatar image Jix · Apr 02, 2016 at 12:41 AM 0
Share

Thanks, I did another solution though... it was painful and boring to do.

I copied the files in the first project and after they were imported I opened the 2nd project and reassigned the scripts.

avatar image JasonGovender Jix · Sep 05, 2018 at 09:09 AM 0
Share

hi did you manage to play both games on 1 screen? like a split screen but 2 different games running?

avatar image Jix JasonGovender · Sep 05, 2018 at 02:50 PM 0
Share

Jason, this was not my intention... however what you're asking is possible. All you have to do is run a scene, then add the second scene, if you're doing this by script then use Scene$$anonymous$$anager.LoadScene("scene name", LoadScene$$anonymous$$ode.Additive), note that you have to put both scenes in different locations so they don't overlap each other. They can't be both at (0,0,0). Now you have 2 cameras in the scene, you have to set the viewport Rect on both cameras so each of them cover half of the screen.

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

42 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why are m_SizeDelta and m_AnchoredPosition values changing in scene file for no reason, complicating merge? 3 Answers

How can i merge mesh vertices using a script? 2 Answers

Merging 2 Textures Into 1 1 Answer

solve merge conflict in unity collab 1 Answer

When I merge 2 objects it spawns 2 objects 1 Answer


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