Search Issue Tracker
Fixed in 2022.1.X
Votes
4
Found in
2021.1.0a1
2021.1.13f1
2021.2
2022.1
Issue ID
1348250
Regression
Yes
if condition in EditorApplication.playModeStateChanged callback is ignored for a loop when entering Play mode
Steps to reproduce:
1. Open the attached project ("1348250.zip")
2. Open "SampleScene"
3. Observe console while entering Play mode
Expected results: EditorApplication.playModeStateChanged is raised 3 times
Actual results: EditorApplication.playModeStateChanged is raised 5 times
Reproducible with: 2021.1.0a1, 2021.1.14f1, 2021.2.0b2, 2022.1.0a1
Not reproducible with: 2019.4.29f1, 2020.2.0a21, 2020.3.14f1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
Add comment