Skip to content

Call DontDestroyOnLoad on root to remove warning #174

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

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Call DontDestroyOnLoad on root to remove warning #174

merged 1 commit into from
Jun 26, 2024

Conversation

SubatomicPlanets
Copy link
Contributor

When calling DontDestroyOnLoad on a child object it won't work and logs a warning. Calling it on the transform.root.gameObject instead will always work.

When calling DontDestroyOnLoad on a child object it won't work and logs a warning. Calling it on the transform.root.gameObject instead will always work.
Copy link
Collaborator

@amakropoulos amakropoulos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the fix!

@amakropoulos amakropoulos merged commit 604812f into undreamai:release/v2.0.2 Jun 26, 2024
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