docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SplineControlPoint

    Spline control point that holds information for constructing the Bezier curve and SpriteShape geometry.

    Inheritance
    object
    SplineControlPoint
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.U2D
    Assembly: Unity.2D.SpriteShape.Runtime.dll
    Syntax
    [Serializable]
    public class SplineControlPoint

    Fields

    corner

    Enable corners of control point.

    Declaration
    public bool corner
    Field Value
    Type Description
    bool

    height

    Height of control point used when generating SpriteShape geometry.

    Declaration
    public float height
    Field Value
    Type Description
    float

    leftTangent

    Left tangent of control point.

    Declaration
    public Vector3 leftTangent
    Field Value
    Type Description
    Vector3

    mode

    Tangent mode of control point.

    Declaration
    public ShapeTangentMode mode
    Field Value
    Type Description
    ShapeTangentMode

    position

    Position of control point.

    Declaration
    public Vector3 position
    Field Value
    Type Description
    Vector3

    rightTangent

    Right tangent of control point.

    Declaration
    public Vector3 rightTangent
    Field Value
    Type Description
    Vector3

    spriteIndex

    Sprite index used for rendering at start of this control point along the edge.

    Declaration
    public int spriteIndex
    Field Value
    Type Description
    int

    Properties

    cornerMode

    Corner mode of control point.

    Declaration
    public Corner cornerMode { get; set; }
    Property Value
    Type Description
    Corner

    Methods

    GetHashCode()

    Get hash code for this Spline control point.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code as int.

    Overrides
    object.GetHashCode()
    In This Article
    Back to top
    Copyright © 2025 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)