Unity 6.6: reset Extenject static state for Fast Enter Play Mode#91
Draft
CharlieHess wants to merge 1 commit into
Draft
Unity 6.6: reset Extenject static state for Fast Enter Play Mode#91CharlieHess wants to merge 1 commit into
CharlieHess wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
In a consumer project testing Unity 6.6 alpha, the remaining Fast Enter Play Mode problems clustered in Extenject. Most of them came from static contexts, caches, and pools that were only safe because domain reload used to clear them between play sessions.
Unity 6.6 is moving the other way. Fast Enter Play Mode is the default for new projects, and the existing reset hooks here were still editor-gated and tied to
EditorSettings.enterPlayModeOptionsEnabled. That left the no-domain-reload path depending on behavior that was no longer guaranteed.This branch makes those resets explicit at
SubsystemRegistrationand adds the missing reset coverage for static memory pools plus the genericDictionaryPool,HashSetPool, andListPoolhelpers. These are the changes we used to keep an embedded-Extenject consumer project working on Unity6000.6.0a2with domain reload disabled.I am not presenting this as a complete Unity 6.6 support pass for the repository's sample project. The validation here came from the downstream consumer-project migration, and I checked in
UNITY_6_6_FAST_ENTER_PLAY_MODE_NOTES.mdto make that provenance explicit.