Search Issue Tracker

Duplicate

Votes

0

Found in

4.3.3f1

Issue ID

593691

Regression

No

[ExecuteInEditMode], OnDisable is called twice on startup

Scripting

-

Duplicate of case 557206
Steps to reproduce:
- Load the scene "test"
- Press play
- Observe the log messages.

There are two log messages which are both printed from OnDisable, demonstrating that it is called twice (both time when Application.isPlaying == false).

Also, the second message shows that the static string "asd" is set from the static initializer, so the game state has been cleared already.

Add comment

Log in to post comment