API reference
API reference
Select your platform
No SDKs available
No versions available

TransformsPolyline Class

Extends MonoBehaviour
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 Oculus.Interaction.TransformsPolyline._started

Fields

PointsCount : int
Signature
int Oculus.Interaction.TransformsPolyline.PointsCount

Protected Methods

Start ()
Signature
virtual void Oculus.Interaction.TransformsPolyline.Start()
Returns
void

Methods

InjectAllTransformsPolyline ( transforms )
Signature
void Oculus.Interaction.TransformsPolyline.InjectAllTransformsPolyline(Transform[] transforms)
Parameters
transforms: Transform []
Returns
void
InjectTransforms ( transforms )
Signature
void Oculus.Interaction.TransformsPolyline.InjectTransforms(Transform[] transforms)
Parameters
transforms: Transform []
Returns
void
PointAtIndex ( index )
Calculates the position N vertex of the IPolyline.
Signature
Vector3 Oculus.Interaction.TransformsPolyline.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