기술 자료

Unity Engine

Unity Engine

GetVisiblePositions

Get the visible positions of all vertices in the trail.
읽는 시간 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
.