暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SSCollision.md 1.2KB

Enabling Collision

Attach a Collider 2D component to your Sprite Shape to enable the Collider properties in the Sprite Shape Controller. However, note that only the Edge and Polygon Collider 2D components can be used with Sprite Shapes.

Attaching a Collider component

The Collider mesh automatically updates itself to the shape of the Sprite Shape when attached. See the Collider section of the Sprite Shape Controller page for more details about the various Sprite Shape Collider options.

Manually editing the Collider mesh

By default, the Collider mesh is automatically reshaped to match the Sprite Shape every time it is edited. To make manual edits to the Collider mesh directly, disable both Update Collider in the Sprite Shape Controller’s Collider settings by clearing their respective checkboxes. This prevents the Sprite Shape Controller from updating the Collider mesh automatically and overriding your manual edits.

Disabling the Collider options