docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetTangentMode

    SetTangentMode(TangentMode)

    Sets the TangentMode for all knots on this spline.

    Declaration
    public void SetTangentMode(TangentMode mode)
    Parameters
    Type Name Description
    TangentMode mode

    The TangentMode to apply to each knot.

    SetTangentMode(int, TangentMode, BezierTangent)

    Sets the TangentMode for a knot, and ensures that the rotation and tangent values match the behavior of the tangent mode. This function can modify the contents of the BezierKnot at the specified index.

    Declaration
    public void SetTangentMode(int index, TangentMode mode, BezierTangent main = BezierTangent.Out)
    Parameters
    Type Name Description
    int index

    The index of the knot to set.

    TangentMode mode

    The mode to set.

    BezierTangent main

    The tangent direction to align both the In and Out tangent when assigning Continuous or Mirrored tangent mode.

    SetTangentMode(SplineRange, TangentMode, BezierTangent)

    Sets the TangentMode for a series of knots, and ensures that the rotation and tangent values match the behavior of the tangent mode. This function can modify the contents of the BezierKnot at the specified indices.

    Declaration
    public void SetTangentMode(SplineRange range, TangentMode mode, BezierTangent main = BezierTangent.Out)
    Parameters
    Type Name Description
    SplineRange range

    The range of knot indices to set.

    TangentMode mode

    The mode to set.

    BezierTangent main

    The tangent direction to align both the In and Out tangent with when Continuous or Mirrored tangent mode is assigned .

    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)