Version:

Ebus Request Bus Interface

Ebus Request Bus Interface

The Vegetation Layer Spawner component uses Vegetation::SpawnerRequestBus and Vegetation::AreaInfoBus interfaces.

For more information about using the event bus (EBus) interface, see Working with the Event Bus (EBus) system.

Use the following request functions with the EBus interface to communicate with other components of your game.

Use the following EBus requests with the Vegetation::SpawnerRequestBus interface.


Request NameDescriptionParametersReturnScriptable?
GetAreaPriorityGet the priority (in the layer) of the vegetation area. Higher numbers have higher priority.NoneFloatYes
SetAreaPrioritySet the priority (in the layer) of the vegetation area.FloatNoneYes
GetAreaLayerGet the layer of the vegetation area.NoneFloatYes
SetAreaLayerSet the layer of the vegetation area.AreaLayerNoneYes
GetAreaProductCountGet the number of currently spawned instances in the vegetation area.AZ::u32NoneYes
GetInheritBehaviorGet the Inherit Behavior setting, which controls whether shapes, modifiers, and filters of a parent entity affect this area.BoolNoneYes
SetInheritBehaviorSet the Inherit Behavior setting.NoneBoolYes
GetAllowEmptyMeshesGet the Allow Empty Meshes setting, which controls whether empty meshes in the Vegetation Asset List are spawned as empty spaces.BoolNoneYes
SetAllowEmptyMeshesSet the Allow Empty Meshes setting.NoneBoolYes
GetFilterStageGet the filter stage. PreProcess means that vegetation filters are applied before vegetation modifiers. PostProcess means that they’re applied afterwards.FilterStageNoneYes
SetFilterStageSet the filter stage.NoneFilterStageYes

Use the following EBus requests with the Vegetation::AreaInfoBus interface.


Request NameDescriptionParametersReturnScriptable?
GetPriorityGet the combined layer and area priority value as a single combined global priority.NoneFloatYes
GetEncompassingAabbGet the axis-aligned bounding box for the entire vegetation area.NoneAZ::AabbYes
GetProductCountGet the number of currently spawned instances in the vegetation area. Same as GetAreaProductCount.NoneAZ::u32Yes
GetChangeIndexGet an incrementing number that represents the number of times that the spawner area has been refreshed since creation.NoneAZ::u32Yes