docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetAutoSmoothTension

    SetAutoSmoothTension(int, float)

    Sets the tension that is used to calculate the magnitude of tangents when the TangentMode is AutoSmooth. Valid values are between 0 and 1. A lower value results in sharper curves, whereas higher values appear more rounded.

    Declaration
    public void SetAutoSmoothTension(int index, float tension)
    Parameters
    Type Name Description
    int index

    The knot index to set a tension value for.

    float tension

    Set the length of the tangent vectors.

    SetAutoSmoothTension(SplineRange, float)

    Sets the tension that is used to calculate the magnitude of tangents when the TangentMode is AutoSmooth. Valid values are between 0 and 1. A lower value results in sharper curves, whereas higher values appear more rounded.

    Declaration
    public void SetAutoSmoothTension(SplineRange range, float tension)
    Parameters
    Type Name Description
    SplineRange range

    The range of knot indices to set a tension value for.

    float tension

    Set the length of the tangent vectors.

    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)