Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

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

Discussion in 'General Discussion' started by virtrodev, Nov 9, 2018 at 5:56 PM.

  1. virtrodev

    virtrodev

    Joined:
    Sep 9, 2017
    Posts:
    2
    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:
    12,427
    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.