Search Issue Tracker
Active
Under Consideration for 2021.3.X, 2022.3.X
Votes
0
Found in
2021.3.31f1
2022.3.11f1
2023.1.17f1
2023.2.0b14
2023.3.0a10
6000.0.0b11
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
- NullReferenceException is thrown when overriding the UxmlObjectReferences in template instances
- Shaders created with Shader Graph generate a large amount of shader variants and cause slow build times when using a baked lightmap in BIRP
- Shader Graph Matrix property produces random output values when SRP Batcher is enabled
- "Untracked" memory is logged by the Profiler when small allocations for delegates and big allocations for new array creations happen simultaneously
- Rotation value change on the X-axis gets stuck when using transform.rotation.eulerAngles
Add comment