Search Issue Tracker
By Design
Votes
0
Found in
4.3.0b6
Issue ID
571955
Regression
No
[InitializeOnLoad] EditorApplication.OpenScene doesn't work
To reproduce:
1. Open the project I've attached
2. Open the "test" scene
3. Reopen the project
4. Notice that EditorApplication.CurrentScene returns "Assets/MainScene.unity" though the "test" scene is actually opened
By design:
The InitializeOnLoad attribute is not the correct place to respond to a scene being loaded.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- Crash on dynamixel_sdk.dynamixel:groupSyncReadTxRxPacket when entering Play Mode after updating path to Dynamixel SDK in script
- NullReferenceException is thrown when changing the Inspector preview selection
Add comment