API reference

TransformsPolyline Class

Extends MonoBehaviour
Implements IPolyline
A IPolyline defined by an array of transforms.
Each transform represents a point in the line, in the given order.

Protected Fields

_started : bool
Signature
bool _started

Properties

PointsCount : int
[Get]
Max number of points that define the polyline.
Signature
int PointsCount

Protected Methods

Start ()
Signature
virtual void Start()
Returns
void

Methods

InjectAllTransformsPolyline ( transforms )
Signature
void InjectAllTransformsPolyline(Transform[] transforms)
Parameters
transforms: Transform[]
Returns
void
InjectTransforms ( transforms )
Signature
void InjectTransforms(Transform[] transforms)
Parameters
transforms: Transform[]
Returns
void
PointAtIndex ( index )
Calculates the position N vertex of the polyline.
Signature
Vector3 PointAtIndex(int index)
Parameters
index: int  The N vertex of the polyline been queried.
Returns
Vector3  The position of the polyline at the index-th point