Version: 2020.3
Box Collider 2D
Edge Collider 2D

Polygon Collider 2D

The Polygon Collider 2D component is a Collider that interacts with the 2D physics system. The Collider’s shape is defined by a freeform edge made of line segments, that you can adjust to fit the shape of the Sprite or any other shape. Note that this Collider’s edge must completely enclose an area to function.

プロパティ 機能
Material 摩擦や弾性など衝突の種類を定義する Physics マテリアル。
Is Trigger これを有効にすると、コライダーをトリガーにします。
Used by Effector コライダーがエフェクターをアタッチしているかどうか。
Used by Composite Tick this checkbox if you want this Collider to be used by an attached Composite Collider 2D.

When you enable Used by Composite, other properties disappear from the Polygon Collider 2D component, because they are now controlled by the attached Composite Collider 2D. The properties that disappear from the Box Collider 2D are Material, Is Trigger, Used By Effector, and Edge Radius.
Used by Collider これを有効にすると、アタッチした 複合コライダー 2D がボックスコライダー 2D を使用するようになります。
Auto Tiling Tick this checkbox if you have set the Draw Mode of the Sprite Renderer component to Tiled. This enables automatic updates to the shape of the Collider 2D, meaning that the shape is automatically readjusted when the Sprite’s dimensions change. If you don’t enable Auto Tiling, the Collider 2D stays the same shape and size, even when the Sprite’s dimensions change.
Offset コライダージオメトリのローカルでのオフセット。
Points 生成されたコライダーの読み取り専用の情報。


コライダーは手動で編集できますが、Unity に自動で形状を決定させる方が便利な場合があります。そのときにはプロジェクトビューのスプライトアセットをインスペクターの Polygon Collider 2D コンポーネント上にドラッグします。

You can edit the polygon’s shape by pressing the Edit Collider button in the Inspector. You can exit Collider edit mode by pressing the Edit Collider button again. While in edit mode, you can move an existing vertex by dragging when the mouse is over that vertex. If you shift-drag while the mouse is over an edge, a new vertex will be created at the mouse location. You can remove a vertex by holding down the ctrl/cmd key while clicking on it.

Note that you can hide the outline of the 2D move Gizmo while editing the Collider by selecting the fold-out arrow on the Sprite Renderer component in the Inspector to collapse it.

Box Collider 2D
Edge Collider 2D