Search Issue Tracker
Duplicate
Votes
0
Found in
4.3.3f1
Issue ID
593691
Regression
No
[ExecuteInEditMode], OnDisable is called twice on startup
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
- [Linux] Touch freezes in Player when any mouse button is clicked
- UnityEngine.Rendering.Volume.OnEnable() is called twice before OnDisable() creating multiple copies of the same volume when a volume is enabled right after Domain Reload when entering Play Mode
- Hinge Joint transforms are reset when toggling the "useMotor" property
- Motion Vector texture reports incorrect Mesh data when Mesh is coming from off-screen
This is a duplicate of issue #557206