Version:

Vegetation Shape Intersection Filter 组件

添加 Vegetation Shape Intersection Filter 组件,以包含在 Shape 组件边界内的植被或阻碍者实例放置。

提供者

Vegetation Gem

依赖

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

Vegetation Shape Intersection Filter 属性

Vegetation Shape Intersection Filter component properties

属性说明默认值
Filter Stage定义是在修饰符之前还是之后应用滤镜。PreProcess, PostProcess, or DefaultDefault
Shape Entity Id选择具有 shape 组件的实体。实例仅放置在形状的边界内。EntityIdNone

ShapeIntersectionFilterRequestBus

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

方法名称说明参数返回值可脚本化
GetShapeEntityId返回 Shape Intersection Filter 的 Shape Entity Id 属性。NoneEntityIdYes
SetShapeEntityId设置 Shape Intersection Filter 的 Shape Entity Id 属性。EntityIdNoneYes