Version: 2019.2
public int[] windQualities ;

説明

Gets and sets an array of integers of the wind qualities on each LOD. Values will be clampped by bestWindQuality internally.

The available wind quality values are:

0 - Off.
1 - Fastest.
2 - Faster.
3 - Better.
4 - Best.
5 - Palm (only available on palm-like trees).

Because the higher wind qualities come with an increased performance cost, you may want assign higher quality wind effects to only the SpeedTree assets that are nearest to the player. You can use this feature to improve performance by using lower-quality wind effects on some of your less detailed LOD levels where the models are far enough away from the camera that the lower quality of this effect is not noticeable. The array length that you supply must match the number of LOD levels in your SpeedTree asset, and typically would have true values at the start, and false values at the end. For example, if your SpeedTree asset has 3 LOD levels, you might pass an array of [ 4, 3, 2] to enable the "Best" wind effect on the nearest LOD level, the "Better" on the second LOD level, and "Faster" on the third and most distant LOD level.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961