docs.unity3d.com
    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. 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 Sprite Shape Collider options.

    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, first disable both Update Collider and Optimize Collider in the Sprite Shape Controller's Collider settings to prevent the Controller from updating the Collider mesh automatically and overriding your manual edits.

    Disabling the Collider options

    You can now edit the Collider mesh independent of the shape of the Sprite Shape.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023