Search Issue Tracker

By Design

Votes

0

Found in

4.3.0b6

Issue ID

571955

Regression

No

[InitializeOnLoad] EditorApplication.OpenScene doesn't work

Scripting

-

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.

Add comment

Log in to post comment