Search Unity

Can't find scripts for Assemblies that are loaded at runtime

Discussion in 'Asset Bundles' started by HelloMeow, Sep 18, 2018.

  1. HelloMeow

    HelloMeow

    Joined:
    May 11, 2014
    Posts:
    280
    Since version 2018.1.0, Unity can no longer find scripts from Assemblies that are loaded at runtime with Assembly.Load when loading Asset Bundles (The referenced script on this Behaviour is missing). This only occurs in the editor. It does work in the built executable.

    The scripts that are loaded with Assembly.Load are usable with AddComponent. They only fail to load when loading an Asset Bundle.

    When the Assembly is added to the project, it does find the scripts as expected.