Version: 2023.1

TrailRenderer.GetVisiblePositions

切换到手册
public int GetVisiblePositions (out Vector3[] positions);
public int GetVisiblePositions (out NativeArray<Vector3> positions);
public int GetVisiblePositions (out NativeSlice<Vector3> positions);

参数

positions 要检索的位置的数组。

返回

int 实际存储在输出数组中的位置数。

描述

Get the visible positions of all vertices in the trail.

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