Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetPosition(int)

Get the position of a vertex in the line.
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: LineRenderer.positionCount property, LineRenderer.SetPositions function, LineRenderer.GetPositions function.