Skip to content

Conversation

Selmar
Copy link
Contributor

@Selmar Selmar commented Jan 9, 2025

Application.logMessageReceived is a static callback handler, which isn't reset when changing scenes or when exiting play mode if domain reloads are not enabled.

When destroying the class without unregistering, e.g. due to scene change or existing play mode, the callback will then try to start a coroutine on the destroyed object.

Application.logMessageReceived is a static callback handler, which isn't reset when changing scenes or when exiting play mode if domain reloads are not enabled.

When destroying the class without unregistering, e.g. due to scene change or existing play mode, the callback will then try to start a coroutine on the destroyed object.
@bobbyg603 bobbyg603 self-requested a review January 10, 2025 18:32
@bobbyg603 bobbyg603 changed the title fix (BugSplatManager): unregister logMessageReceived on destruction fix(BugSplatManager): unregister logMessageReceived on destruction Jan 10, 2025
@bobbyg603
Copy link
Member

LGTM, thank you for your help here @Selmar 🚀

@bobbyg603 bobbyg603 merged commit fd73975 into BugSplat-Git:main Jan 10, 2025
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.

2 participants