Search Issue Tracker
Fixed in 5.2.0
Votes
1
Found in
4.1.1f4
Issue ID
535280
Regression
No
Bool Property doesn't get initialized via Object Initializers
Bool Property doesn't get initialized via Object Initializers
//script A.cs
...
var b = new TestB() { B = false };
Debug.Log(b.B); //prints true;
...
class TestB
{
public bool B = true;
}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
- [Linux] Touch freezes in Player when any mouse button is clicked
- UnityEngine.Rendering.Volume.OnEnable() is called twice before OnDisable() creating multiple copies of the same volume when a volume is enabled right after Domain Reload when entering Play Mode
- Hinge Joint transforms are reset when toggling the "useMotor" property
- Motion Vector texture reports incorrect Mesh data when Mesh is coming from off-screen
Add comment