docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SplineFactory

    Methods to create spline shapes.

    Inheritance
    object
    SplineFactory
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.Splines
    Assembly: solution.dll
    Syntax
    public static class SplineFactory

    Methods

    Name Description
    CreateCatmullRom(IList<float3>, bool)

    Create a Spline from a list of positions and place tangents to create Catmull Rom curves.

    CreateCircle(float)

    Creates a Spline in the shape of a circle.

    CreateHelix(float, float, int)

    Creates a Spline in the shape of a helix with a single revolution.

    CreateLinear(IList<float3>, bool)

    Create a Spline from a list of positions.

    CreateLinear(IList<float3>, IList<quaternion>, bool)

    Create a Spline from a list of positions.

    CreatePolygon(float, int)

    Creates a Spline in the shape of a polygon with a specific number of sides.

    CreateRoundedCornerSquare(float, float)

    Creates a Spline in the shape of a square with circular arcs at its corners.

    CreateRoundedSquare(float, float)

    Create a Spline in a square shape with rounding at the edges.

    CreateSquare(float)

    Creates a Spline in the shape of a square with sharp corners.

    CreateStarPolygon(float, int, float)

    Creates a Spline in in the shape of a star with a specified number of corners.

    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)