Navigation
API > API/Runtime > API/Runtime/Landscape
This is only here because putting it in LandscapeEditorObject.h (where it belongs) results in Engine being dependent on LandscapeEditor, as the actual landscape editing code (e.g. LandscapeEdit.h) is in /Engine/ for some reason...
| Name | ELandscapeLayerPaintingRestriction |
| Type | enum |
| Header File | /Engine/Source/Runtime/Landscape/Classes/LandscapeProxy.h |
| Include Path | #include "LandscapeProxy.h" |
Syntax
enum ELandscapeLayerPaintingRestriction
{
None,
UseMaxLayers,
ExistingOnly,
UseComponentAllowList,
}
Values
| Name | Remarks |
|---|---|
| None | No restriction, can paint anywhere (default). |
| UseMaxLayers | Uses the MaxPaintedLayersPerComponent setting from the LandscapeProxy. |
| ExistingOnly | Restricts painting to only components that already have this layer. |
| UseComponentAllowList | Restricts painting to only components that have this layer in their allow list. |