Version:

Surface Mask Gradient 组件

添加Surface Mask Gradient组件,从曲面标记列表中生成归一化渐变。 相应的曲面掩膜权重用于生成输出梯度。

提供者

Gradient Signal Gem

Surface Mask Gradient 属性

Surface Mask Gradient component properties

属性说明默认值
Preview显示该组件应用所有属性后的输出渐变效果。
Pin Preview to Shape设置一个具有兼容形状组件的实体,以便在Constrain to ShapeEnabled时用作预览的边界。EntityIdCurrent Entity
Preview Position设置预览的世界位置。

只有在Pin Preview to Shape中没有选择实体时,此字段才可用。
Vector3: -Infinity to InfinityX:0.0, Y:0.0, Z:0.0
Preview Size设置预览的尺寸。Vector3: 0.0 to InfinityX:1.0, Y:1.0, Z:1.0
Constrain to Shape如果Enabled,渐变预览将使用在Pin Preview to Shape中选择的实体的边界。

此字段仅在Pin Preview to Shape中选择了实体时可用。
BooleanDisabled
Surface Tag List用于生成梯度的 表面标签 数组。Array: Surface TagsNone

SurfaceMaskGradientRequestBus

将以下请求函数与SurfaceMaskGradientRequestBus EBus 接口结合使用,可与游戏中的Surface Mask Gradient组件进行通信。

方法名称说明参数返回值脚本化
AddTag将曲面标记添加到Surface Tag List数组。Surface Tag: StringNoneYes
GetNumTags返回Surface Tag List数组中标签的数量。NoneCount: IntegerYes
GetTag返回Surface Tag List数组中指定索引处的表面标签。Surface Tag Index: IntegerSurface Tag: StringYes
RemoveTag删除Surface Tag List数组中指定索引处的表面标记。Surface Tag Index: IntegerNoneYes