Search Issue Tracker
Duplicate
Votes
0
Found in
4.5.0f6
Issue ID
621474
Regression
No
Default C# values don't get initialized via Object Initializer
To reproduce:
1. Open the attached project
2. Play the 'Main Scene' scene and go to console tab
3. Notice that Case 3 outputs '(True, 1, 0.5, red)' instead of '(False, 0, 0, <null>)', even though it is written in the code that it should change this value
Note:
Default values don't get initialized via Object Initializer
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
This is a duplicate of issue #592094