docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)