Version:

Vegetation Surface Mask Depth Filter 组件

添加 Vegetation Surface Mask Depth Filter 组件,以将植被或阻碍器实例放置在特定表面标签周围的区域。

提供者

Vegetation Gem

依赖

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

Vegetation Surface Mask Depth Filter 属性

Vegetation Surface Mask Depth Filter component properties

属性说明默认值
Filter Stage定义是在修饰符之前还是之后应用滤镜。PreProcess, PostProcess, or DefaultDefault
Allow Per-Item Overrides如果为 ‘Enabled’,则启用的植被描述符属性可以覆盖此组件的属性。BooleanDisabled
Upper Distance Range设置植被实例和 Depth Comparison Tags 之间的最大高度差。正值对应于 surface 标签上方的高度,负值对应于 surface 标签下方的高度。Float: -Infinity to Infinity1000.0
Lower Distance Range设置 Vegetation 实例和 Depth Comparison Tags 之间的最小高度差。正值对应于 surface 标签上方的高度,负值对应于 surface 标签下方的高度。Float: -Infinity to Infinity-1000.0
Depth Comparison Tags一个 surface tags数组,用于提供海拔数据以查询海拔高度。Array: Surface TagsNone

SurfaceMaskDepthFilterRequestBus

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

方法名称说明参数返回值可脚本化
AddTag将曲面标记添加到 Depth Comparison Tags 数组中。Surface Tag: StringNoneYes
GetAllowOverrides返回 Allow Per-Item Overrides 属性的配置。NoneBooleanYes
GetLowerDistance返回 Lower Distance Range 属性的值。NoneFloatYes
GetNumTags返回 Depth Comparison Tags 数组中的表面标记数。NoneCount: IntegerYes
GetTag返回 Depth Comparison Tags 数组的指定索引处的 surface 标签。Surface Tag Index: IntegerSurface Tag: StringYes
GetUpperDistance返回 Upper Distance Range 属性的值。NoneFloatYes
RemoveTag删除 Depth Comparison Tags 数组的指定索引处的表面标签。Surface Tag Index: IntegerNoneYes
SetAllowOverrides设置 Allow Per-Item Overrides 属性的配置。BooleanNoneYes
SetLowerDistance设置 Lower Distance Range 属性的值。FloatNoneYes
SetUpperDistance设置 Upper Distance Range 属性的值。FloatNoneYes