docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetPivot

    SetPivot(SplineContainer, Vector3)

    Reset a transform position to a position while keeping knot positions in the same place. This modifies both knot positions and transform position.

    Declaration
    public static void SetPivot(SplineContainer container, Vector3 position)
    Parameters
    Type Name Description
    SplineContainer container

    The target spline.

    Vector3 position

    The point in world space to move the pivot to.

    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)