Search Unity

  1. Unity 2018.3 is now released.
    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. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

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:
    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,838
    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.