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
- The Selection Wire Gizmo is not being rendered in the Scene View when GPU Resident Drawer is enabled
- Visual Effect with Single Burst Spawn System stops playing when an Additive Scene is loaded asynchronously with SceneManager.LoadSceneAsync
- The sprite draw calls are batched in the Player when the Sprite Atlas is uploaded from an AssetBundle and the Sprite Atlas Mode is set to Disabled
- The Joint Anchor position remains the same when the GameObject is dynamically scaled
- [Android] Selection of text in the InputField is not being removed when pressing the backspace button on Android Devices
This is a duplicate of issue #592094