Scripting API

BoxCollider2D

class in UnityEngine · UnityEngine.Physics2DModule · inherits from Collider2D

4 of 4 of Unity's membersUnity's documentation

Properties 3

bool autoTiling { get; set; }
float edgeRadius { get; set; }

Rounds the corners, growing the box outward by the radius.

Vector2 size { get; set; }