Search Issue Tracker
Fixed in 2021.3.48f1
Fixed in 2021.3.X, 2022.3.X, 6000.0.X, 7000.0.0a20
Votes
0
Found in
2021.3.31f1
2022.3.11f1
2023.1.17f1
2023.2.0b14
2023.3.0a10
6000.0.0b11
6000.1.0a7
6000.2.0a1
Issue ID
UUM-53659
Regression
No
Method ran with RuntimeInitializeOnLoad is executed last when running an overload of the method and declaring it above the RuntimeInitializeOnLoad method
How to reproduce:
1. Open the attached “RuntimeInitializeOnLoad.zip“ project
2. Open the “SampleScene“ Scene
3. Enter Play Mode
Expected result: "Tagged method" is logged in the Console
Actual result: “RefTypeTest“ is logged in the Console
Reproducible with: 2021.3.31f1, 2022.3.11f1, 2023.1.17f1, 2023.2.0b14, 2023.3.0a10
Reproducible on: macOS 14.0 Sonoma (Intel)
Not reproducible on: No other environment tested
Notes:
- Also reproducible in Player
- The first declared overload is always called no matter the amount of overloads
- The user reported that commenting out the “RefTypeTest” method or moving it below the “ValueTypeTest” method and entering Play Mode, caused the Editor to hang, but when testing, the Editor didn’t hang, instead the “NullReferenceException: Object reference not set to an instance of an object“ error appeared in the Console
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android][IL2CPP][ARMv7] Struct field value corrupts when invoking a generic delegate with a large struct by value
- Highlights persist throughout Options Panels in the Rendering Debugger Window
- Typing numbers in Matrix node’s numeric fields stretches Node
- Streaming is misspelled as "Steaming" in "Enable GPU Streaming" and "Enable Disk Streaming" tooltpis
- "IndexOutOfRangeException" thrown when moving caret left at start of TMP Input Field with rich text
Add comment