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
- Memory usage rises when switching scenes with GRD enabled and a loaded texture in URP
- [Quality Hackweek] Terrain Brush Size value is not serialized after deselecting the terrain when using the first instance of multiple Inspectors
- "NullReferenceException" is thrown when setting a long string in TMP with "Atlas Population Mode" set to "Dynamic" and "Multi Atlas Textures" enabled
- TextMeshPro text is misaligned when alignment is set via script
- A DX11 shader error is thrown when compiling shaders for platforms without DX11 support
Add comment