ELandscapeLayerPaintingRestriction

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...

Choose your operating system:

Windows

macOS

Linux

References

Module

Landscape

Header

/Engine/Source/Runtime/Landscape/Classes/LandscapeProxy.h

Include

#include "LandscapeProxy.h"

Syntax

enum ELandscapeLayerPaintingRestriction
{
    None,
    UseMaxLayers,
    ExistingOnly,
    UseComponentAllowList,
}

Values

Name

Description

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.

Remarks

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...