ドキュメント

Unity Engine

Unity Engine

GetPosition(int)

Get the position of a vertex in the trail.
読み終わるまでの所要時間 1 分最終更新 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: TrailRenderer.positionCount property.
Additional Resources: TrailRenderer.GetPositions function.