docs.unity3d.com
    Show / Hide Table of Contents

    Class SplineControlPoint

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

    Inheritance
    Object
    SplineControlPoint
    Namespace: UnityEngine.U2D
    Syntax
    [Serializable]
    public class SplineControlPoint

    Fields

    corner

    Enable corners of control point.

    Declaration
    public bool corner
    Field Value
    Type Description
    Boolean

    height

    Height of control point used when generating SpriteShape geometry.

    Declaration
    public float height
    Field Value
    Type Description
    Single

    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
    Int32

    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
    Int32

    Hash code as int.

    Overrides
    Object.GetHashCode()
    Back to top
    Terms of use
    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