fix: releasing Addressables handle on OnDestroy in DynamicAddressablesNetworkPrefabs Preloading scene by fernando-cortez · Pull Request #179 · Unity-Technologies/com.unity.multiplayer.samples.bitesize
Description
A bug was discovered when testing Preloading scene where the Dynamic Prefab loading in Preloading scene was null, due to the Addressables handle being released as soon as the prefab was loaded.
The Release call was moved to this MonoBehaviour's OnDestroy method.
Issue Number(s)
N/A
To Test:
Load 00_Preloading Dynamic Prefabs scene.
Host on one instance.
See that the warnings shared below don't appear on console.
Verify that the same is for a joining client.
Contribution checklist
- [ N/A ] Tests have been added for the project and/or any internal package
- Release notes have been added to the project changelog file
- Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- [ N/A ] JIRA ticket ID is in the PR title or at least one commit message
- [ N/A ] Include the ticket ID number within the body message of the PR to create a hyperlink
