Open 3D Engine Terrain Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
Terrain::TerrainAreaMaterialNotifications Class Reference

Notifications for when the surface -> material mapping changes.. More...

#include <TerrainAreaMaterialRequestBus.h>

Inherits AZ::EBusTraits.

Public Member Functions

virtual void OnTerrainDefaultSurfaceMaterialCreated (AZ::EntityId entityId, AZ::Data::Instance< AZ::RPI::Material > material)
 The default surface material has been assigned and loaded.
 
virtual void OnTerrainDefaultSurfaceMaterialDestroyed (AZ::EntityId entityId)
 The default surface material has been unassigned.
 
virtual void OnTerrainDefaultSurfaceMaterialChanged (AZ::EntityId entityId, AZ::Data::Instance< AZ::RPI::Material > newMaterial)
 The default surface material has been changed to a different material.
 
virtual void OnTerrainSurfaceMaterialMappingCreated (AZ::EntityId entityId, SurfaceData::SurfaceTag surface, AZ::Data::Instance< AZ::RPI::Material > material)
 A loaded material mapped to a valid surface tag has been created.
 
virtual void OnTerrainSurfaceMaterialMappingDestroyed (AZ::EntityId entityId, SurfaceData::SurfaceTag surface)
 Either the material or surface tag was unassigned, making this mapping invalid.
 
virtual void OnTerrainSurfaceMaterialMappingTagChanged (AZ::EntityId entityId, SurfaceData::SurfaceTag oldSurface, SurfaceData::SurfaceTag newSurface)
 The surface tag has changed to tag for an existing material.
 
virtual void OnTerrainSurfaceMaterialMappingMaterialChanged (AZ::EntityId entityId, SurfaceData::SurfaceTag surface, AZ::Data::Instance< AZ::RPI::Material > material)
 The material has changed for an existing surface tag.
 
virtual void OnTerrainSurfaceMaterialMappingRegionCreated (AZ::EntityId entityId, const AZ::Aabb &region)
 A set of surface material mappings has been created.
 
virtual void OnTerrainSurfaceMaterialMappingRegionDestroyed (AZ::EntityId entityId, const AZ::Aabb &oldRegion)
 A set of surface material mappings has been destroyed.
 
virtual void OnTerrainSurfaceMaterialMappingRegionChanged (AZ::EntityId entityId, const AZ::Aabb &oldRegion, const AZ::Aabb &newRegion)
 The bounds of this set of surface material mappings has changed.
 

Static Public Attributes

static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Multiple
 
static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single
 

Detailed Description

Notifications for when the surface -> material mapping changes..


The documentation for this class was generated from the following file: