Navigation
API > API/Runtime > API/Runtime/Landscape
ELandscapeLayerUpdateMode flags relate to types of updates to landscape layer data. Stored on the ALandscape and on ULandscapeComponent to indicate pending changes. Stored on FLandscapeEditLayerComponentReadbackResult to indicate what type of change triggered the creation of the new data.
Update_All_Components on ALandscape or passed to RequestLayersContentUpdate will cause all components to be enqueued for layer merging, rather than only those components carrying relevant flags of their own.
See IsUpdateFlagEnabledForModes, where these flags are translated to ELandscapeComponentUpdateFlag, that indicate specific tasks.
| Name | ELandscapeLayerUpdateMode |
| Type | enum |
| Header File | /Engine/Source/Runtime/Landscape/Classes/LandscapeComponent.h |
| Include Path | #include "LandscapeComponent.h" |
Syntax
enum ELandscapeLayerUpdateMode
{
Update_None = 0,
Update_Heightmap_All_Modes = 1 << 0,
Update_Heightmap_Editing = 1 << 1,
Update_Heightmap_Editing_NoCollision = 1 << 2,
Update_Weightmap_All_Modes = 1 << 3,
Update_Weightmap_Editing = 1 << 4,
Update_Weightmap_Editing_NoCollision = 1 << 5,
Update_All_Components = 1 << 6,
Update_Heightmap_All = Update_Heightmap_All_Modes | Update_All_Components,
Update_Weightmap_All = Update_Weightmap_All_Modes | Update_All_Components,
Update_All = Update_Weightmap_All | Update_Heightmap_All,
Update_All_Editing = Update_Weightmap_Editing | Update_Heightmap_Editing,
Update_All_Editing_NoCollision = Update_Weightmap_Editing_NoCollision | Update_Heightmap_Editing_NoCollision,
Update_Heightmap_Types = Update_Heightmap_All_Modes | Update_Heightmap_Editing | Update_Heightmap_Editing_NoCollision,
Update_Weightmap_Types = Update_Weightmap_All_Modes | Update_Weightmap_Editing | Update_Weightmap_Editing_NoCollision,
Update_Client_Deferred = 1 << 7,
Update_Client_Editing = 1 << 8,
}
Values
| Name | Remarks |
|---|---|
| Update_None | No Update. |
| Update_Heightmap_All_Modes | Update types. |
| Update_Heightmap_Editing | |
| Update_Heightmap_Editing_NoCollision | |
| Update_Weightmap_All_Modes | |
| Update_Weightmap_Editing | |
| Update_Weightmap_Editing_NoCollision | |
| Update_All_Components | |
| Update_Heightmap_All | Combinations. |
| Update_Weightmap_All | |
| Update_All | |
| Update_All_Editing | |
| Update_All_Editing_NoCollision | |
| Update_Heightmap_Types | |
| Update_Weightmap_Types | |
| Update_Client_Deferred | In cases where we couldn't update the clients right away this flag will be set in RegenerateLayersContent. |
| Update_Client_Editing | Update landscape component clients while editing. |