IN THIS ARTICLE
Terrain Layer Spawner Component
The Terrain Layer Spawner component spawns a terrain layer within given bounds, and enables the ordering of multiple layers.
The priority is controlled by first assigning a layer, either Foregound(Highest priority) or Background, and then by using the Priority setting, with a higher number being a higher priority.
You can configure the dimensions of the layer by modifying the Box component on the same entity. The Box component is required for the Layer Spawner to operate.
|Layer Priority||The priority of the spawner. Foreground has a higher priority than Background.||Foreground or Background|
|Sub Priority||Sets the priority of this spawner within the layer. Higher numbers will override lower.||0 - 10000||0|
|Use Ground Plane||Enable this setting to provide a default ground plane where no terrain is defined.||Boolean|
Use the following request functions with the
TerrainSpawnerRequestBus EBus interface to communicate with other components of your game.
Retrieves the terrain layer priority.
Layer [out] - Index of the Layer Priority setting (Foreground is 0). Type: Unsigned Int
Priority [out] - Value of the Sub Priority setting. Type: Unsigned Int
Retrieves the value of the Use Ground Plane setting.
Return Value of the setting . Type: Boolean
Copyright © 2022 Open 3D Engine Contributors
Documentation Distributed under CC BY 4.0.
The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our Trademark Policy page.