Search Issue Tracker
By Design
Votes
0
Found in
2018.2.0a1
2018.2.0b4
Issue ID
1040539
Regression
Yes
[UTR] EditorApplication.isPlaying = false doesn't stop playmode after test completion
Steps to reproduce:
1) Open the attached project.
2) Open Test Runner.
3) Run EditMode tests.
The tests pass, but the editor remains in playmode, even though EditorApplication.isPlaying = false; is set.
Expected: playmode stops after test completion.
Actual: playmode remains active after test completion.
Reproduced on:
2018.3.0a1, 2018.2.0a1
Did not reproduce:
2018.1.0b1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
Resolution Note:
EditorApplication.isPlaying can not be used to enter/exit playmode. yield return new EnterPlayMode(); and yield return new ExitPlayMode(); should be used instead.
https://docs.unity3d.com/2018.3/Documentation/ScriptReference/TestTools.EnterPlayMode.html