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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    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.

  1. gorka_c

    gorka_c

    Joined:
    Oct 10, 2022
    Posts:
    13
    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:
    4,330
    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:
    9,058
    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:
    13,356
    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:
    13
    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?