Version:

Vegetation Slope Filter 组件

添加 Vegetation Slope Filter 组件,以将植被或阻碍器实例放置限制为一系列地形坡度值。

提供者

Vegetation Gem

依赖

使用 Vegetation Slope Filter 组件时,添加以下必需组件之一:

Vegetation Slope Filter 属性

Vegetation Slope Filter component properties

属性说明默认值
Filter Stage定义是在修饰符之前还是之后应用滤镜。PreProcess, PostProcess, 或 DefaultDefault
Allow Per-Item Overrides如果为 ‘Enabled’,则启用的植被描述符属性可以覆盖此组件的属性。BooleanDisabled
Slope Min设置植被实例放置的最小地形坡度值。Float: 0.0 - 180.00.0
Slope Max设置植被实例放置的最大地形坡度值。Float: 0.0 - 180.0180.0

SurfaceSlopeFilterRequestBus

将以下请求函数与 ‘SurfaceSlopeFilterRequestBus’ 事件总线接口结合使用,以便与游戏中的 Vegetation Slope Filter 组件进行通信。

方法名称说明参数返回值可脚本化
GetAllowOverrides返回 Allow Per-Item Overrides 属性的配置。NoneBooleanYes
GetAltitudeMax返回 Slope Max 属性的值。NoneFloatYes
GetAltitudeMin返回 Slope Min 属性的值。NoneFloatYes
SetAllowOverrides设置 Allow Per-Item Overrides 属性的配置。BooleanNoneYes
SetAltitudeMax设置 Slope Max 属性。FloatNoneYes
SetAltitudeMin设置 Slope Min 属性。FloatNoneYes