Collider 2d change size in y axis doesnt work

,

When i create a particle system and then add a collider 2d (doesnt matter which collider it is) i cant change the size in the y axis, it stays the same.

You have rotated your GameObject’s Transform so now your BoxCollider2D is lying flat going into the distance.

Instead, make two child GameObjects, one for the ParticleSystem that is rotated -90 and one for the BoxCollider2D that is not.

EDIT: I see Unity is giving you a spiffy warning about it:

Everything Kurt said above with the added info that rotating a 2D collider (in the XY plane) 90-deg around the X-axis means the collider would be in the XZ plane. For this to exist it would need to be a 3D collider.

Any transformation you make to 2D collider geometry is projected onto the XY plane so for your case above, that means you’re seeing the projection edge-on so with no thickness it has zero area and cannot exist.

Also, that warning couldn’t be any bigger but to this day it’s ignored again and again. Maybe I need to make it flash? :slight_smile: