GetVisiblePositions
Get the visible positions of all vertices in the trail.
Read time 1 minuteLast updated 4 days ago
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
The array of positions to retrieve.
Returns
Type | Description |
|---|---|
| int | How 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 .
falseGetVisiblePositions(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 |
|---|---|
| int | How 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 .
falseGetVisiblePositions(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 |
|---|---|
| int | How 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