Search Unity

Alternative ways to stream scenes/assets/scripts/code into a game

Discussion in 'General Discussion' started by virtrodev, Nov 9, 2018.

  1. virtrodev

    virtrodev

    Joined:
    Sep 9, 2017
    Posts:
    3
    Hello Everyone,

    We are working on a project where we want the base unity build to be as lightweight and as small as possible. Big emphasis on modularity.
    With this intent, we want to stream in scenes, assets, any new scripts, code, mini games and such into the game without having the user to update.

    We are aware of asset bundles and addressables.

    What we want to know: if there's any alternative to these that exist right now or will come soon?

    Also, we know that with asset bundles you can stream in scenes with code in it, but the scripts have to be local so that the references properly fill in.
    Is there a way to stream in scenes (like a mini game) where we can get the scene + the code/scripts/logic without holding the scripts locally and without updating?

    Appreciate any support.
     
  2. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,203
    Yes. There are frameworks that allow you to execute code that wasn't originally part of the project. Typically these are integrated to allow players to mod the game but you could use this yourself to add executable code to asset bundles.

    C#
    https://assetstore.unity.com/packages/tools/integration/dynamic-c-82084

    Lua
    https://assetstore.unity.com/packages/tools/moonsharp-33776

    MiniScript
    https://assetstore.unity.com/packages/tools/integration/miniscript-87926
     
    Antypodish likes this.