Class SplineControlPoint
Spline control point that holds information for constructing the Bezier curve and SpriteShape geometry.
Inherited Members
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.  |