기술 자료

Unity Engine

Unity Engine

GetPosition(int)

Get the position of a vertex in the line.
읽는 시간 1분최근 업데이트: 한 달 전

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.