Search Unity

Question An addressable scene was added to the build scenes list and can thus no longer be addressable.

Discussion in 'Addressables' started by SleepyAgapornis, Jan 9, 2021.

  1. SleepyAgapornis

    SleepyAgapornis

    Joined:
    Sep 7, 2018
    Posts:
    23
    Hello, my project consists of a bunch of mini-games that are being developed by different developers using different scenes... so far the addressables have been working great and have also been a very good solution to reduce loading times and download content on-demand... but I'm facing the problem that, since all scenes (mini-games) are addressables, people want to test their own mini-games by compiling builds the normal way, which is by adding the scenes into the build scenes within build settings... this cause the issue that when doing so, the addressable scene just gets deleted, displaying the warning: An addressable scene was added to the build scenes list and can thus no longer be addressable....leaving a bunch of empty references...

    I've solved this issue by just commenting OnScenesChanged() from AddressableSceneManager.cs, and so far everything seems to work fine... I can now add a scene to the build settings and keep it corresponding addressables but does that have consequences?

    cheers!
     
  2. SleepyAgapornis

    SleepyAgapornis

    Joined:
    Sep 7, 2018
    Posts:
    23
    EDIT: After restarting unity the script AddressableSceneManager resets and the problem persists... is there a way to disable removing addressable scenes when adding those scenes to the built settings??