IN THIS ARTICLE
Terrain Surface Materials List Component
The Terrain Surface Materials List component defines mappings between surface types and render materials. You can use this to change the appearance of a surface type within different areas of your game. When you assign a material to a surface type, all the visible surfaces of that type, within the bounds of the required Axis Aligned Box Shape component, will adopt that material.
Select the surface type tag using the SurfaceTag drop-down menu, then assign a material by clicking and choosing a material, or by dragging a material from the AssetBrowser window.
|Gradient to Material Mappings||An array of surface tags and material assets to map together.|
|Surface Tag||Selects a surface tag to map to a material.||Surface: Surface Tag||None|
|Material Asset||Selects a material asset to apply to the surface.||Material Asset||None|
Use the following request functions with the
TerrainAreaMaterialRequestBus EBus interface to communicate with Surface Material List components of your game.
|Retrieves all the assigned surface types, the materials that you have assigned to them, and the bounds that are set for this entity.||None||Terrain Surface Material Mapping: Vector||No.|
|Notifies listeners when a new mapping between a Surface and a Material is set up.||None||EntityId; Surface Tag; Material||No|
|Notifies listeners when a mapping between a Surface and a Material is removed.||None||EntityId; Surface Tag||No|
|Notifies listeners when a mapping between a Surface and a Material is changed.||None||EntityId; Surface Tag; Material||No|
|Notifies listeners when the bounds of the component are modified.||None||EntityId; Old Region: Aabb; New Region: Aabb||No|