Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question Which is the best method to create a "portal" with different games?

Discussion in 'General Discussion' started by gorka_c, Nov 24, 2022 at 8:53 AM.

  1. gorka_c

    gorka_c

    Joined:
    Oct 10, 2022
    Posts:
    6
    Hi, I want to create a portal where you can see a catalog of different games and you can download and play any game you see there. How can I add to my game, while its running, another game that I can interact with? Is there any tutorial about it?
    Thank you!
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    1,541
    That‘s pretty much up to you if the goal is to build several of your unity projects in a single unity project.
    Alternatively you‘d have a launcher interface which doesn‘t even have to be built with unity, and it launches the referenced apps. Of course integration of that is limited or not possible on some platforms if you don‘t own all of these games.
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,071
    and some alternatives
    - webview/embedded browser used to play games from url's
    - load "minigames" from asset bundles/addressables (maybe somewhat limited if all scripts need to be in main app)
    - adding runtime scripting (theres LUA, miniscript and other scripting solutions that work in mobiles too)
     
  4. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    12,147
    Well, there are asset bundles and addressables, but they cannot contain code.

    So you can't include a 3rd party game into your game unless your main application has all necessary scripts in it.

    Basically, you can make a launcher like steam in unity.

    Or you could try to add runtime scripts support for languages like lua, and make games using that only. But this is not a worthwhile effort, as you'll lose most of the unity's features this way.
     
  5. gorka_c

    gorka_c

    Joined:
    Oct 10, 2022
    Posts:
    6
    Thanks for the answers!
    So I can´t download and add code to the launcher while running? what if I treat the games as if they where mods or dlc`s, with for example mod.io or assets of Unity like ModTool?
     
unityunity