Class SplineUtility | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class SplineUtility

    Inheritance
    System.Object
    SplineUtility
    Namespace: UnityEngine.U2D
    Syntax
    public class SplineUtility

    Methods

    CalculateTangents(Vector3, Vector3, Vector3, Vector3, Single, out Vector3, out Vector3)

    Declaration
    public static void CalculateTangents(Vector3 point, Vector3 prevPoint, Vector3 nextPoint, Vector3 forward, float scale, out Vector3 rightTangent, out Vector3 leftTangent)
    Parameters
    Type Name Description
    Vector3 point
    Vector3 prevPoint
    Vector3 nextPoint
    Vector3 forward
    System.Single scale
    Vector3 rightTangent
    Vector3 leftTangent

    NextIndex(Int32, Int32)

    Declaration
    public static int NextIndex(int index, int pointCount)
    Parameters
    Type Name Description
    System.Int32 index
    System.Int32 pointCount
    Returns
    Type Description
    System.Int32

    PreviousIndex(Int32, Int32)

    Declaration
    public static int PreviousIndex(int index, int pointCount)
    Parameters
    Type Name Description
    System.Int32 index
    System.Int32 pointCount
    Returns
    Type Description
    System.Int32
    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