Search Issue Tracker
Active
Votes
0
Found in
6000.2.6f1
6000.3.0b3
Issue ID
UUM-119437
Regression
Yes
InitializeOnLoadMethod is called before scenes gets loaded after project upgrade
Steps to reproduce:
1. Create a new project in 6000.2.5f1
2. Create a new script
3. Add the following code:
[InitializeOnLoadMethod]
static void LoadMethod()
{
Debug.Log("InitializeOnLoadMethod called");
Debug.Log("EditorBuildSettings.scenes length: " + EditorBuildSettings.scenes.Length);
}
4. Wait for editor to recompile
5. Observe the console
6. Upgrade the project to 6000.2.6f1
7. Observe the console
Actual results:
0 Scenes are loaded in EditorBuildSettings.scenes.Length when using [InitializeOnLoadMethod] attribute
Expected results:
All required scenes are loaded in EditorBuildSettings.scenes.Length when using [InitializeOnLoadMethod] attribute
Reproducible with versions:
6000.2.6f1, 6000.3.0b3
Not reproducible with versions:
6000.2.5f1, 6000.3.0b2
Tested on (OS):
MacOS Sequoia 15.6.1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
Add comment