docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method UpdatePivotPosition

    UpdatePivotPosition(bool)

    Updates current pivot position, usually called internally by callbacks. It can be called to refresh the pivot position after manipulating spline elements, for instance, such as moving a knot.

    Declaration
    public static void UpdatePivotPosition(bool useKnotPositionForTangents = false)
    Parameters
    Type Name Description
    bool useKnotPositionForTangents

    Set to true to use the knots positions to compute the pivot instead of the tangents ones. This is necessary for some tools where it is preferrable to represent the handle on the knots rather than on the tangents directly. For instance, rotating a tangent is more intuitive when the handle is on the knot.

    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)