Version:

Vegetation Slope Filter Component

Add the Vegetation Slope Filter component to restrict vegetation or blocker instance placement to a range of terrain slope values.

Provider

Vegetation Gem

Dependencies

Add one of the following required components when using the Vegetation Slope Filter component:

Vegetation Slope Filter properties

Vegetation Slope Filter component properties

PropertyDescriptionValuesDefault
Filter StageDefines if filters are applied before or after modifiers.PreProcess, PostProcess, or DefaultDefault
Allow Per-Item OverridesIf Enabled, vegetation descriptor properties that are enabled can override this component’s properties.BooleanDisabled
Slope MinSets the minimum terrain slope value for vegetation instance placement.Float: 0.0 - 180.00.0
Slope MaxSets the maximum terrain slope value for vegetation instance placement.Float: 0.0 - 180.0180.0

SurfaceSlopeFilterRequestBus

Use the following request functions with the SurfaceSlopeFilterRequestBus EBus interface to communicate with Vegetation Slope Filter components in your game.

Method NameDescriptionParameterReturnScriptable
GetAllowOverridesReturns the configuration of the Allow Per-Item Overrides property.NoneBooleanYes
GetAltitudeMaxReturns the value of the Slope Max property.NoneFloatYes
GetAltitudeMinReturns the value of the Slope Min property.NoneFloatYes
SetAllowOverridesSets the configuration of the Allow Per-Item Overrides property.BooleanNoneYes
SetAltitudeMaxSets the Slope Max property.FloatNoneYes
SetAltitudeMinSets the Slope Min property.FloatNoneYes