#include <TerrainMacroMaterialBus.h>
Inherits AZ::EBusTraits.
|
static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Multiple |
| Allow multiple listeners to the notification bus.
|
|
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::Single |
|
Notifications for when the terrain macro material data changes.
◆ OnTerrainMacroMaterialChanged()
virtual void Terrain::TerrainMacroMaterialNotifications::OnTerrainMacroMaterialChanged |
( |
[[maybe_unused] ] AZ::EntityId |
macroMaterialEntity, |
|
|
[[maybe_unused] ] const MacroMaterialData & |
macroMaterial |
|
) |
| |
|
inlinevirtual |
Notify any listeners that the macro material data changed.
- Parameters
-
macroMaterialEntity | The Entity ID for the entity containing the macro material. |
macroMaterial | The data for the changed macro material. (This data contains the new changes) |
◆ OnTerrainMacroMaterialCreated()
virtual void Terrain::TerrainMacroMaterialNotifications::OnTerrainMacroMaterialCreated |
( |
[[maybe_unused] ] AZ::EntityId |
macroMaterialEntity, |
|
|
[[maybe_unused] ] const MacroMaterialData & |
macroMaterial |
|
) |
| |
|
inlinevirtual |
Notify any listeners that a new macro material has been created.
- Parameters
-
macroMaterialEntity | The Entity ID for the entity containing the macro material. |
macroMaterial | The data for the newly-created macro material. |
◆ OnTerrainMacroMaterialDestroyed()
virtual void Terrain::TerrainMacroMaterialNotifications::OnTerrainMacroMaterialDestroyed |
( |
[[maybe_unused] ] AZ::EntityId |
macroMaterialEntity | ) |
|
|
inlinevirtual |
Notify any listeners that the macro material has been destroyed.
- Parameters
-
macroMaterialEntity | The Entity ID for the entity containing the macro material. |
◆ OnTerrainMacroMaterialRegionChanged()
virtual void Terrain::TerrainMacroMaterialNotifications::OnTerrainMacroMaterialRegionChanged |
( |
[[maybe_unused] ] AZ::EntityId |
macroMaterialEntity, |
|
|
[[maybe_unused] ] const AZ::Aabb & |
oldRegion, |
|
|
[[maybe_unused] ] const AZ::Aabb & |
newRegion |
|
) |
| |
|
inlinevirtual |
Notify any listeners that the region affected by the macro material has changed (presumably by moving the transform or the box)
- Parameters
-
macroMaterialEntity | The Entity ID for the entity containing the macro material. |
oldRegion | The previous region covered by the macro material. |
newRegion | The new region covered by the macro material. |
◆ AddressPolicy
const AZ::EBusAddressPolicy Terrain::TerrainMacroMaterialNotifications::AddressPolicy = AZ::EBusAddressPolicy::Single |
|
static |
Notifications are broadcast to everyone and don't require subscribing to a specific ID or address. This is because the systems that care about this information wouldn't know which entity IDs to listen to until after it received a "macro material created" event, which is one of the events sent out on this bus. So instead, all the events include which entity ID they affect, but don't require subscribing to specific entity IDs.
The documentation for this class was generated from the following file:
- Gems/Terrain/Code/Source/TerrainRenderer/TerrainMacroMaterialBus.h