docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Edit the spline of a sprite shape

    Move, add, and remove the control points of a sprite shape, and set how the spline curves between them.

    The spline is the outline of a sprite shape, and Unity tiles the sprites of the Sprite Shape Profile along it. To change the shape and size of a sprite shape, edit the control points of its spline in the Scene view.

    Edit the control points

    To edit the control points of a sprite shape, follow these steps:

    1. Select a GameObject with a Sprite Shape Controller component in the Hierarchy window.
    2. In the Sprite Shape Controller component in the Inspector window, select Edit Spline. The spline and its control points appear in the Scene view.
    3. Edit the control points in the Scene view:
      • To move a control point, drag it.
      • To add a control point, click the spline between two control points.
      • To remove the selected control point, press Delete.

    A sprite shape in the Scene view with a selected control point and its tangents, next to the Sprite Shape Controller component in the Inspector window with Edit Spline enabled.

    A straight sprite shape in the Scene view with a new control point added on the spline between two existing control points.

    To turn grid snapping on or off while you edit the spline, select the Global Snap icon in the Scene view toolbar. For more information, refer to Grid snapping.

    Set the tangent mode of a control point

    The tangent mode of a control point sets how the spline curves at that point. Each control point has its own tangent mode. To set it, select the control point, then set Tangent Mode in the Element Inspector overlay.

    To cycle through the tangent modes of a selected control point, press M. To change the tangent mode of several control points at once, first set all the selected control points to the same mode, then press M or set Tangent Mode to another mode.

    Linear mode

    In Linear mode, a control point has no tangents, so the spline between it and its neighboring control points is a straight line. Where two edges meet at a control point, their sprites might overlap.

    To choose which sprite appears on top where they overlap, set their Order value in the Angle Range settings of the Sprite Shape Profile.

    A sprite shape that bends at a control point in Linear mode, with straight edges and overlapping sprites at the corner.

    Continuous Mirrored mode

    In Continuous Mirrored mode, a selected control point has two tangents on opposite sides, which curve the spline between the control point and its neighbors. Drag the tangents to change the shape of the curve. The angle between the two tangents is always 180 degrees, but their lengths can differ.

    Press B to mirror the length of the last edited tangent onto the opposite tangent.

    A sprite shape curved by a control point in Continuous Mirrored mode, with its two tangents in a straight line.

    Broken Mirrored mode

    In Broken Mirrored mode, a selected control point has two tangents on opposite sides, which curve the spline between the control point and its neighbors. Drag each tangent to change its length and angle without changing the other tangent.

    Press B to mirror the last edited tangent onto the opposite tangent. The opposite tangent takes the same length as the last edited tangent, and points exactly 180 degrees away from it.

    A sprite shape curved by a control point in Broken Mirrored mode, with its two tangents at different angles and lengths.

    Change the sprite variant at a control point

    To change the sprite variant that a selected control point displays, press N to cycle through all available variants. You can also select a variant in Sprite Variant in the Element Inspector overlay.

    Change the keyboard shortcuts

    To change the shortcuts for editing the spline, select Edit > Shortcuts, then select the Sprite Shape Editing category.

    Additional resources

    • Add a collider to a sprite shape
    • Sprite Shape Controller component reference
    • Sprite Shape Profile
    In This Article
    Back to top
    Copyright © 2026 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)