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. Dismiss Notice

Question What is MonoScript Bundle?

Discussion in 'Addressables' started by Bas-Smit, Sep 29, 2022.

  1. Bas-Smit

    Bas-Smit

    Joined:
    Dec 23, 2012
    Posts:
    272
    In the Build section of the Addressable Asset Settings there is the Monoscript Bundle Naming Prefix setting. Can someone explain what the Monoscript Bundle is and why I might want to enable it?

    I have not been able to find any info on this, apart from finding it in the Library folder
     
    Prodigga likes this.
  2. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    346
    The information can be found in here:
     
    Bas-Smit likes this.
  3. Bas-Smit

    Bas-Smit

    Joined:
    Dec 23, 2012
    Posts:
    272
    If I set the default local group build and load paths to remote the monoscript bundle shows up in the remote build path. Does this imply I can deliver code changes through the bundle without updating the app itself?
     
  4. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    346
    Bas-Smit likes this.
  5. andymilsom

    andymilsom

    Unity Technologies

    Joined:
    Mar 2, 2016
    Posts:
    294
    No as Alan-Liu mentioned, it contains information about where to find the code from your player assemblies, not the code itself.
    You do however need it to be remote if you want to have new content to reference additional code that was not previously used.

    The main use of the MonoScripts bundle is to avoid issues that can only be solved by having different bundles reference the same monoScript. It is generally good to enable it as a precaution, but may not be necessary unless you come across problems, such as missing object references in components,

     
    Bas-Smit likes this.