BoxCollider2D 盒碰撞器2D

class in UnityEngine / Inherits from: Collider2D

Description 描述

Collider for 2D physics representing an axis-aligned rectangle. 二维物理碰撞器,基于矩形轴对齐。

See Also: CircleCollider2D, PolygonCollider2D, EdgeCollider2D. 参见: CircleCollider2D, PolygonCollider2D, EdgeCollider2D。

Variables 变量

sizeThe width and height of the rectangle.
矩形的宽度和高度。