Search Issue Tracker

Fixed in 4.3.X

Votes

0

Found in

4.3.0b5

Issue ID

568374

Regression

No

2D. You cannot input negative values for BoxCollider size from editor, but you can do it from a script

2D

-

Steps:
1. Create object.
2. Add BoxCollider2D
3. Try to change Size valies to -1

It will automaticaly change it to 1e-5.
You can set negative size from script.

gameObject.GetComponent<BoxCollider2D>().size = -Vector2.one;

And it is inconsistant with 3D colliders, because we can set negative size from Editor.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.