Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

index

The index of the position to retrieve.

Returns

Type

Description

Vector3The position at the specified index in the array.

Remarks

Additional Resources: TrailRenderer.positionCount property.
Additional Resources: TrailRenderer.GetPositions function.