LineRenderer.SetPositions public voidSetPositions(Vector3[]positions); 参数 positions要设置的位置的数组。 描述 设置线中所有顶点的位置。 在设置所有位置时,此方法优于SetPosition,因为使用单个命令设置所有位置比单独设置每个位置更高效。 另请参阅:numPositions属性。
[i].pos; } lineRenderer.numPositions = positions.Length; lineRenderer.SetPositions(positions); } private void UpdateRopeSimulation(List<RopeSection> allRopeSections, float timeStep) { //Move the last position, which is the top position, to what the rope is attached to RopeSection lastRope...
SetPositionsSelf Sets the positions of the baked light probes stored in this LightProbes object. Static Methods CalculateInterpolatedLightAndOcclusionProbes Calculate light probes and occlusion probes at the given world space positions. GetInstantiatedLightProbesForScene Gets an instantiated clone of the Lig...
LineRenderer.SetPositions public void SetPositions (Vector3[] positions); public void SetPositions (NativeArray<Vector3> positions); public void SetPositions (NativeSlice<Vector3> positions); 参数positions 要设置的位置的数组。 描述 设置线中所有顶点的位置。
LineRenderer.SetPositions public void SetPositions (Vector3[] positions); public void SetPositions (NativeArray<Vector3> positions); public void SetPositions (NativeSlice<Vector3> positions); 参数positions 要设置的位置的数组。 描述 设置线中所有顶点的位置。
LineRenderer.SetPositions public void SetPositions (Vector3[] positions); Parameters positions The array of positions to set. Description Set the positions of all vertices in the line. This method is preferred to SetPosition when setting all positions, as it is more efficient to set all positio...
LineRenderer.SetPositions public void SetPositions (Vector3[] positions); Parameters positions The array of positions to set. Description Set the positions of all vertices in the line. This method is preferred to SetPosition when setting all positions, as it is more efficient to set all positio...
LineRenderer.SetPositions public void SetPositions (Vector3[] positions); Parameters positions The array of positions to set. Description Set the positions of all vertices in the line. This method is preferred to SetPosition when setting all positions, as it is more efficient to set all positio...
LineRenderer.SetPositions public void SetPositions (Vector3[] positions); パラメーター positions The array of positions to set. 説明 ラインのすべての頂点の位置を設定します。 This method is preferred to SetPosition when setting all positions, as it is more efficient to set all positions us...