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

Inject before awake when instantiating #575

Merged
merged 3 commits into from
Dec 23, 2023

Conversation

AlonTalmi
Copy link
Contributor

Solves #540

The object is instantiated disabled and only enabled after it was injected, that way awake is only called after injection.

Added to the existing Unit Test an assert proving the bug

Copy link

vercel bot commented Nov 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vcontainer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2023 2:49pm

Added try-finally when injecting to newly instantiated object so prefab will always return to original state
@hadashiA
Copy link
Owner

@AlonTalmi 👍
Thanks for the fixing. I think it is a good improvement.
I was going to merge, can I get the conflicts resolved?

@hadashiA hadashiA merged commit 579efb9 into hadashiA:master Dec 23, 2023
2 checks passed
@hadashiA
Copy link
Owner

I was able to follow your commit and resolve the conflict. I've merged it here. Thanks.

@AlonTalmi AlonTalmi deleted the InjectBeforeAwake branch March 6, 2024 19:41
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