GetPosition(int)
Get the position of a vertex in the trail.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public Vector3 GetPosition(int index)
Parameters
The index of the position to retrieve.
Returns
Type | Description |
|---|---|
| Vector3 | The position at the specified index in the array. |
Remarks
Additional Resources: TrailRenderer.positionCount property.
Additional Resources: TrailRenderer.GetPositions function.