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

Make DisposableLifetimeHelper.DisposeOnDestroy work properly on never-enabled objects. #30

Open
nadako opened this issue Jun 19, 2024 · 0 comments

Comments

@nadako
Copy link
Owner

nadako commented Jun 19, 2024

It's kinda edge-casey and it's a bit annoying to implement, but should be possible, since gameObject == null returns true if GO was destroyed, we can add a playerloop hook to poll this condition until it's true and call OnDestroy manually.

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

No branches or pull requests

1 participant