Version:

Vegetation Asset Weight Selector 组件

Vegetation Asset Weight Selector 组件使用梯度的值从植被资产列表中选择资产。 在选择之前,可以按权重对资产进行排序,并且可以修改输入梯度以影响植被资产的数量和分布。

提供者

Vegetation Gem

Vegetation Asset Weight Selector 属性

Vegetation Asset Weight Selector component properties

属性说明默认值
Sort By Weight确定在使用渐变选择资产之前是否按权重对资产描述符进行排序。Unsorted, Ascending, 或 DescendingUnsorted
Gradient请参阅下面的 Gradient properties

Gradient 属性

Gradient properties 2

属性说明默认值
Gradient Entity Id设置具有活动 Gradient 组件的实体。EntityNone
Opacity设置输入渐变的不透明度。Float: 0.0 - 1.01.0
Invert Input反转输入渐变的值。BooleanDisabled
Preview (Inbound)显示 Gradient Entity Id 中的实体集提供的渐变。
Enable Transform如果为 ‘Enabled’,则可以修改输入渐变的平移、缩放和旋转。BooleanDisabled
Translate设置输入渐变的平移。Vector3: -Infinity to InfinityX:0.0, Y:0.0, Z:0.0
Scale设置输入渐变的比例。Vector3: 0.0 to InfinityX:1.0, Y:1.0, Z:1.0
Rotate设置输入渐变的旋转。Vector3: -Infinity to InfinityX:0.0, Y:0.0, Z:0.0
Enable Levels如果为 ‘Enabled’,则可以修改渐变的输入和输出值。BooleanDisabled
Input Mid设置输入渐变的中值。Float: 0.0 - 1.01.0
Input Min设置输入渐变的最小值。Float: 0.0 - 1.00.0
Input Max设置输入渐变的最大值。Float: 0.0 - 1.01.0
Output Min设置输出渐变的最小值。Float: 0.0 - 1.00.0
Output Max设置输出渐变的最大值。Float: 0.0 - 1.01.0

DescriptorWeightSelectorRequestBus

将以下请求函数与 ‘DescriptorWeightSelectorRequestBus’ 事件总线接口结合使用,以便与游戏中的植被资产权重选择器组件进行通信。

方法名称说明参数返回值可脚本化
GetGradientSampler返回权重选择器的 gradient sampler 对象。NoneGradient SamplerYes
GetSortBehavior设置 Sort By Weight 属性的配置。返回 ‘0’ 表示 ‘unsorted’,返回 ‘1’ 表示 ‘Ascending’,返回 ‘2’ 表示 ‘descending’。NoneSort Behavior: IntegerYes
SetSortBehavior设置 Sort By Weight 属性的配置。“0”代表“Unsorted”,“1”代表“Ascending”,“2”代表“Descending”。Sort Behavior: IntegerNoneYes