Navigation
API > API/Runtime > API/Runtime/Landscape
References
| Module | Landscape |
| Header | /Engine/Source/Runtime/Landscape/Public/LandscapeEditLayerRenderer.h |
| Include | #include "LandscapeEditLayerRenderer.h" |
Syntax
struct FEditLayerTargetTypeState
Remarks
FEditLayerTargetTypeState fully describes the state of an edit layer renderer wrt its target types. It's named after the enum "ELandscapeToolTargetType" in order to tell whether the renderer's heightmaps and/or visibility and/or weightmaps are enabled (and if so, which weightmap is enabled exactly) It is meant to be provided by the edit layer renderer's GetRendererStateInfo implementation.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FEditLayerTargetTypeState
(
ELandscapeToolTargetTypeFlags InTargetTypeMask, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddTargetType
(
ELandscapeToolTargetType InTargetType |
Adds the target type in parameter to the mask of active target types | |
| void | AddTargetTypeMask
(
ELandscapeToolTargetTypeFlags InTargetTypeMask |
Appends the target type mask in parameter to the mask of active target types | |
| void | AddWeightmap
(
FName InWeightmapLayerName |
Adds a weightmap to the list of active weightmaps (make sure ELandscapeToolTargetType::Weightmap is amongst the supported target types) | |
| const TArray< FName > & | Returns the currently active weightmaps, if Weightmap is amongst the supported target types | ||
| ELandscapeToolTargetTypeFlags | Returns the target type mask (i.e. same as ELandscapeToolTargetType, but as bit flags) | ||
| FEditLayerTargetTypeState | Intersect
(
const FEditLayerTargetTypeState& InOther |
Returns the "intersection" (AND operation) between the target type state and the one in parameter. | |
| bool | IsActive
(
ELandscapeToolTargetType InTargetType, |
Indicates whether a given target type is currently active in this state | |
| void | RemoveTargetType
(
ELandscapeToolTargetType InTargetType |
Removes a single target type from the mask of active target types | |
| void | RemoveTargetTypeMask
(
ELandscapeToolTargetTypeFlags InTargetTypeMask |
Removes the target type mask in parameter from the mask of active target types | |
| void | RemoveWeightmap
(
FName InWeightmapLayerName |
Removes a weightmap from the list of active weightmaps | |
| void | SetTargetTypeMask
(
ELandscapeToolTargetTypeFlags InTargetTypeMask |
Sets the target type mask (i.e. same as ELandscapeToolTargetType, but as bit flags) | |
| FString | ToString () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator==
(
const FEditLayerTargetTypeState& InOther |