ドキュメント

Unity Engine

Unity Engine

GetVisiblePositions

Get the visible positions of all vertices in the trail.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

GetVisiblePositions(Vector3[])

Get the visible positions of all vertices in the trail.
public int GetVisiblePositions(Vector3[] positions)

Parameters

positions

The array of positions to retrieve.

Returns

Type

Description

intHow many positions were actually stored in the output array.

Remarks

This method is similar to TrailRenderer.GetPositions, except that it will not return positions that the Trail Renderer created while TrailRenderer.emitting was set to
false
.

GetVisiblePositions(NativeArray<Vector3>)

Get the visible positions of all vertices in the trail.
public int GetVisiblePositions(NativeArray<Vector3> positions)

Parameters

The array of positions to retrieve.

Returns

Type

Description

intHow many positions were actually stored in the output array.

Remarks

This method is similar to TrailRenderer.GetPositions, except that it will not return positions that the Trail Renderer created while TrailRenderer.emitting was set to
false
.

GetVisiblePositions(NativeSlice<Vector3>)

Get the visible positions of all vertices in the trail.
public int GetVisiblePositions(NativeSlice<Vector3> positions)

Parameters

The array of positions to retrieve.

Returns

Type

Description

intHow many positions were actually stored in the output array.

Remarks

This method is similar to TrailRenderer.GetPositions, except that it will not return positions that the Trail Renderer created while TrailRenderer.emitting was set to
false
.