Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Cannot be used with allowSceneActivation

Discussion in 'Addressables' started by movingdimensions, Apr 30, 2021.

  1. movingdimensions

    movingdimensions

    Joined:
    Jan 9, 2015
    Posts:
    18
    I was breaking down what could have been causing the issue I mentioned here:
    https://forum.unity.com/threads/cus...-successfully-retrieved.1101922/#post-7093297

    Turns out if I start a level load async with allowSceneActivation set to false, and then load Addressable assets in between before I set back allowSceneActivation to true, assets are never loaded. No errors are thrown or anything. Their handle provider just never goes over 0.5 or trigger call backs.

    Worth noting that if I set allowSceneActivation back to true, pending Addressable assets finish their loading correctly.

    Is this intended behavior? This seems like a bug to me.
     
  2. It is well-documented: https://docs.unity3d.com/Packages/com.unity.addressables@1.16/manual/LoadSceneAsync.html
     
    SugoiDev and movingdimensions like this.
  3. movingdimensions

    movingdimensions

    Joined:
    Jan 9, 2015
    Posts:
    18
    Thanks for pointing this out.