Search Issue Tracker

Fixed in 5.0.X

Votes

0

Found in

5.0.0a1

Issue ID

600355

Regression

No

Name of EditorApplication.isPlayingOrWillChangePlaymode is inconsistent with its behaviour

Editor - Other

-

Normally, EditorApplication.isPlayingOrWillChangePlaymode implies that if EditorApplication.isPlaying = true, EditorApplication.isPlayingOrWillChangePlaymode should also be equal to true. However, when exiting play mode, EditorApplication.isPlayingOrWillChangePlaymode is set to false and EditorApplication.isPlaying is set to true.

Comments (2)

  1. JohnHacker

    Jan 03, 2017 10:50

    I hope this is intended behavior. Without this there wouldn't be a way to know when the editor is going to change from play to stop. If someone wants the behavior the OP wants they can just use (UnityEditor.EditorApplication.isPlaying || UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode)

  2. TMPxyz

    Oct 20, 2015 03:52

    This issue still exists in Unity5.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.