Version: 2018.2
public void SetBoundingDistances (float[] distances);

パラメーター

distancesバウンディングディスタンスの配列。距離は昇順でソートされます。
distanceBehavioursAn array of CullingDistanceBehaviour settings. The array should be the same length as the array provided to the distances parameter. It can also be omitted or passed as null, in which case all distances will be given CullingDistanceBehaviour.Normal behaviour.

説明

'Distance Band' グループを計算する必要があるため、同様にスフィアを各 'Distance Band' に落としこむ処理するためのオプションとしてバウンディングディスタンスを設定します。

各距離の値はその距離のバンドの'最大'を示します。配列 [10, 20, 30] は " 0 から 10m "、 " 10m から 20m " 、 " 20m から 30m " のバンドを示します。

The distance from the reference point (set by CullingGroup.SetDistanceReferencePoint) to the nearest edge of the sphere is used to calculate which distance band a sphere is in. Therefore a sphere that covers multiple distance bands will be considered to be in the nearest one to the reference point.

強制的にオブジェクトを表示か非表示にすることに加えて、オブジェクトの LOD を変更させるために Distance Band を使用できます。例えば、バンドを " 0 から 40 m " と " 40 m から 80 m " と定義できます。オクルージョンカリングとフルスタムカリング両方のバンドを通常で適用できます。 2 番目のバンドのオブジェクトを複雑ではない Rig や、複雑ではない AI ビヘイビアでアニメーション化できます。

デフォルトでは、ファイナルバウンディングディスタンスを超えるスフィアは暗黙的かつ強制的に非表示になります。これを避けるために float.PositiveInfinity のファイナルバウンディングディスタンスを指定できます。