Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also keep any Addressable Resource manager on Context Clean #249

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Baccanno
Copy link

As this is a Unity Package I think it should be added here (although in the long run there should be a way to specify additional files to keep depending on packages/own services).

I pulled my hair out on this one. My tests where basically just hanging in the void because async operations where not finishing anymore due to this GO suppression.

Thank you for sending a pull request! Please make sure you read the contribution guidelines

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Does this introduce a breaking change?

  • Yes
  • No

On which Unity version has this been tested?

  • 2020.4 LTS
  • 2020.3
  • 2020.2
  • 2020.1
  • 2019.4 LTS
  • 2019.3
  • 2019.2
  • 2019.1
  • 2018.4 LTS

Scripting backend:

  • Mono
  • IL2CPP

As this is a Unity Package I think it should be added here (although in the long run there should be a way to specify additional files to keep depending on packages/own services). I pulled my hair out on this one. My tests where basically just hanging in the void because async operations where not finishing anymore due to this GO suppression.
@GorrionMW
Copy link

This issue still occurs in Unity 2021.3.4f1. Quick explanation: ZenjectIntegrationTestFixture calls ZenjectTestUtil.DestroyEverythingExceptTestRunner(true) for setup on every test. This removes all gameobjects, except for the tet runner, unfortunately also removing ResourceManagerCallbacks which is responsible for loading Addressables properly. Without this, addressables will load but will not invoke 'Complete' callback, making your tests stuck if they wait for an asset or a scene to load. Please merge this in

@RicardoGuzmanVelasco
Copy link

We did this workaround within our "zenject mirror fixture". This is totally legit. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants