docs.unity3d.com
    Show / Hide Table of Contents

    Reverse the flow of a spline

    Reverse the flow direction of a spline.

    Each spline has a flow direction that moves from its first knot to its last knot. Arrows on the segments and knots of a spline indicate the flow direction of the spline.

    If you reverse the flow of a spline, you create a spline that mirrors the original spline. The following occurs:

    • The knot indices of the spline reverse. For example, the first knot of the original spline becomes the last knot of the reversed spline.
    • For knots in the Bezier tangent mode, the In tangent becomes the Out tangent and the Out tangent becomes the In tangent.

    To reverse the flow of a spline:

    1. In the Hierarchy window or Scene view, select a GameObject with a Spline component.
    2. In the Tools overlay, set the tool context to Spline.
    3. Select a knot on the spline.
    4. In the Element Inspector overlay, select Reverse Spline Flow.

    Additional resources

    • Knots
    • Tangent modes
    In This Article
    • Additional resources
    Back to top
    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