- Home /
Load A complete unity game using other program
What I want to do is to have a main hub where all the my available games are presented. User can select a game and it will download it from a server. I want to know what programming language/ application can load an entire unity game.
I was planning to use asset bundle before as a solution to this functionality but I don't think it will fit my need. Because a. it requires pro b. it does not load executable code. codes will be downloaded as text asset c. the loader/the hub where all the games will be loaded need to know what codes are present in the asset bundle. this would now work as there are about 40+ games and they all have different types of games in it with different scripts.
Now I am trying to figure out a way to just create an app that can load these unity games and can pass info to the games. Like log in info so it knows the username of the player while he is playing a game.
Note: we are planning to deploy this app in multiple platforms.
Here is simple image of what I want to achieve. :)
Unity has statements to open and edit files. $$anonymous$$aybe save the players stats (username/password/whatever) in a text file, then have the seperate games read that text file?
Answer by DirusCanis · Jan 12, 2015 at 06:57 AM
My first initial thought would be to create a new Unity Project and copy everything from the others into that. Then create a UI Menu that would load each one the same way you load Scenes currently.
However, since you want to download each game separately, you could do it via some sort of hacked Update function within that new Project? Have it flagged so that when the user clicks on it, it checks to see if it's been downloaded/updated, and if it hasn't then download/update it.
but i want the container/hub to be dynamic as we will add more games in the future
I can only suggest the same thing. If you add a new game to the list, then pass it as an update that updates the main UI menu.
Tho whole thing should be do able with a $$anonymous$$ain $$anonymous$$enu Scene.
When a player clicks on a tile it checks to see if x scene(game) exists by trying to access the login info file for that game, if can't access the file then capture that error and have the game download the scene(game) and all files from the server. If can access it then it loads that scene(game). You can also use that same login info file to see if that specific game needs to be updated by storing the current installed version and doing a server side check.
As for the dynamic hub, that can be handled with the normal game update routine. When you add more games, just update the main program/scene and have it downloaded at the start.
Thanks for the reply. Sorry I'm just new to unity and this is my first project.
By downloading/updating it from server. are you talking about asset bundles. or is there any other method to do it. I've read that if i want to use asset bundle the loader/hub should know all the codes contained in the bundle so he will know how to identify them and place then in game. Which won't work bec the games are made differently and by different developer. we are working on a $$anonymous$$m. so basically we will create our games in unity then find a way to create an app that could launch and download this game individually depending on what user want to play. Like a game portal.
Regarding the update, does that mean I can only run 1 game at a time? and there is no way to tab between games?
Your answer
Follow this Question
Related Questions
Loading GameObject with the Script Attached from the AssetBundle. 0 Answers
Find all assetbundles in folder 0 Answers
Resources.Load doesn't load whole text file 0 Answers
How to organize resources loading and unloading? 0 Answers
iOS App using AssetBundles & ODRs works on XCode but not on Testflight 0 Answers