Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
0
Found in
2020.1.a15
2022.1.0a7
Issue ID
1367222
Regression
Yes
Domain Reload missing when entering play mode
Users have reported that a domain reload isn't done when entering play mode, even though project is configured to do so. No solid repro case has been provided. For users having this problem, it even happens in an empty project.
Problem started with change related to moving domain reloads inside asset database. It was discovered that LockReloadAssemblies now got checked, when doing domain reload before play mode and would cause domain reload to be skipped if set.
Since there isn't a working repro case, this test can instead be used to verify the issue:
////
public class DomainReload
{
[UnityTest]
public IEnumerator LockedReloadAssemblies_DoesNotPreventDomainReload_WhenEnteringPlayMode()
{
AssetDatabaseExperimental.counters.ResetDeltas();
EditorApplication.LockReloadAssemblies();
yield return new EnterPlayMode();
Assert.AreEqual(1, AssetDatabaseExperimental.counters.import.domainReload.delta);
yield return new ExitPlayMode();
Assert.AreEqual(1, AssetDatabaseExperimental.counters.import.domainReload.delta);
EditorApplication.UnlockReloadAssemblies();
}
}
////
Above tests fails with: 2022.1.0a7, 2022.1.0a8 and 2021.2.0b12
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
Add comment