Unity provides standard spline asset, use BGCurve only if Unity spline misses some feature

API Reference (Point)

This page is API reference for a curve's point (BansheeGz.BGSpline.Curve.BGCurvePointI). BGCurvePointI is an interface, implementation class depends on curve's PointsMode

Position

Method/Property Returns Description
PositionLocal Vector3 Local position. It's relative to curve's origin. All transformations are ignored
PositionLocalTransformed Vector3 Local position. It's relative to curve's origin. All transformations are applied
PositionWorld Vector3 World position.

Controls

Method/Property Returns Description
ControlFirstLocal Vector3 Local position for first control (inbound). It's relative to point's position, all transformations are ignored
ControlFirstLocalTransformed Vector3 Local position for first control (inbound). It's relative to point's position with all transformations applied
ControlFirstWorld Vector3 World position for first control (inbound)
ControlSecondLocal Vector3 Local position for second control (outbound). It's relative to point's position, all transformations are ignored
ControlSecondLocalTransformed Vector3 Local position for second control (outbound). It's relative to point's position with all transformations applied
ControlSecondWorld Vector3 World position for second control (outbound)

Misc

Method/Property Returns Description
ControlType ControlTypeEnum Point's controls type. Absent- no controls, BezierSymmetrical- symmetrical Bezier, BezierIndependant- both controls are independent of each other
PointTransform Transform Unity's transform to use as point's position
Curve BGCurve Returns a curve (readonly)

Custom Fields

Method/Property Returns Description
GetField<T>(string name) T Get custom field value by field's name
GetFloat(string name) float Get custom field value by field's name
GetBool(string name) bool Get custom field value by field's name
GetInt(string name) int Get custom field value by field's name
GetVector3(string name) Vector3 Get custom field value by field's name
GetQuaternion(string name) Quaternion Get custom field value by field's name
GetBounds(string name) Bounds Get custom field value by field's name
GetColor(string name) Color Get custom field value by field's name
SetField<T>(string name, T value) void Set custom field value by field's name
SetFloat(string name, float value) void Set custom field value by field's name
SetBool(string name, bool value) void Set custom field value by field's name
SetInt(string name, int value) void Set custom field value by field's name
SetVector3(string name, Vector3 value) void Set custom field value by field's name
SetQuaternion(string name, Quaternion value) void Set custom field value by field's name
SetBounds(string name, Bounds value) void Set custom field value by field's name
SetColor(string name, Color value) void Set custom field value by field's name