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