本文内容
Vegetation Shape Intersection Filter 组件
添加 Vegetation Shape Intersection Filter 组件,以包含在 Shape 组件边界内的植被或阻碍者实例放置。
提供者
依赖
使用 Vegetation Shape Intersection Filter 组件时,添加以下必需组件之一:
- Vegetation Layer Blender
- Vegetation Layer Blocker
- Vegetation Layer Blocker (Mesh)
- Vegetation Layer Spawner
Vegetation Shape Intersection Filter 属性
属性 | 说明 | 值 | 默认值 |
---|---|---|---|
Filter Stage | 定义是在修饰符之前还是之后应用滤镜。 | PreProcess , PostProcess , or Default | Default |
Shape Entity Id | 选择具有 shape 组件的实体。实例仅放置在形状的边界内。 | EntityId | None |
ShapeIntersectionFilterRequestBus
将以下请求函数与 ‘ShapeIntersectionFilterRequestBus
’ 事件总线接口结合使用,以便与游戏中的 Vegetation Shape Intersection Filter 组件进行通信。
方法名称 | 说明 | 参数 | 返回值 | 可脚本化 |
---|---|---|---|---|
GetShapeEntityId | 返回 Shape Intersection Filter 的 Shape Entity Id 属性。 | None | EntityId | Yes |
SetShapeEntityId | 设置 Shape Intersection Filter 的 Shape Entity Id 属性。 | EntityId | None | Yes |