Navigation
API > API/Runtime > API/Runtime/Landscape
Inheritance Hierarchy
- APartitionActor
- ILandscapeSplineInterface
- ALandscapeProxy
- ALandscape
References
| Module | Landscape |
| Header | /Engine/Source/Runtime/Landscape/Classes/Landscape.h |
| Include | #include "Landscape.h" |
Syntax
UCLASS (MinimalAPI, ShowCategories=(Display, Movement, Collision, Lighting, LOD, Input),
HideCategories=(Mobility))
class ALandscape : public ALandscapeProxy
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAreNewLandscapeActorsSpatiallyLoaded | Landscape actor has authority on default streaming behavior for new actors : LandscapeStreamingProxies & LandscapeSplineActors | |
| bool | bCanHaveLayersContent | ||
| bool | bEnableEditorLayersTick | ||
| bool | bGrassUpdateEnabled | Used to temporarily disable Grass Update in Editor | |
| bool | bIncludeGridSizeInNameForLandscapeActors | If true, LandscapeStreamingProxy actors have the grid size included in their name, for backward compatibility we also check the AWorldSettings::bIncludeGridSizeInNameForPartitionedActors | |
| bool | bUseGeneratedLandscapeSplineMeshesActors | If true, WorldPartitionLandscapeSplineMeshesBuilder is responsible of generating partitioned actors of type ALandscapeSplineMeshesActor that will contain all landscape spline/controlpoints static meshes. | |
| bool | bWarnedGlobalMergeDimensionsExceeded | ||
| FGuid | EditingLayer | Current Editing Landscape Layer | |
| TArray< TObjectPtr< UTextureRenderTarget2D > > | HeightmapRTList | ||
| TArray< FLandscapeLayer > | LandscapeLayers | ||
| FGuid | LandscapeSplinesTargetLayerGuid | Target Landscape Layer for Landscape Splines | |
| TArray< TWeakObjectPtr< UTexture2D > > | TrackedStreamingInTextures | List of textures that are not fully streamed in yet (updated every frame to track textures that have finished streaming in) | |
| TArray< TObjectPtr< UTextureRenderTarget2D > > | WeightmapRTList |
Constructors
| Type | Name | Description | |
|---|---|---|---|
ALandscape
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddBrushToLayer
(
int32 InLayerIndex, |
||
| void | AddLayersToProxy
(
ALandscapeProxy* InProxy |
||
| void | CalcComponentIndicesNoOverlap
(
const int32 X1, |
Exclude Components with overlapped vertices X2/Y2 Coordinates are "inclusive" max values | |
| void | CalcComponentIndicesOverlap
(
const int32 X1, |
Include Components with overlapped vertices X2/Y2 Coordinates are "inclusive" max values | |
| bool | |||
| bool | CanDeleteSelectedActor
(
FText& OutReason |
||
| void | ClearDirtyData
(
ULandscapeComponent* InLandscapeComponent |
||
| void | ClearLayer
(
const FGuid& InLayerGuid, |
||
| void | ClearLayer
(
int32 InLayerIndex, |
||
| void | ClearPaintLayer
(
const FGuid& InLayerGuid, |
||
| void | ClearPaintLayer
(
int32 InLayerIndex, |
||
| void | CollapseLayer
(
int32 InLayerIndex |
||
| FIntPoint | |||
| bool | ComputeLandscapeLayerBrushInfo
(
FTransform& OutLandscapeTransform, |
||
| void | |||
| void | CopyOldDataToDefaultLayer
(
ALandscapeProxy* Proxy |
||
| void | |||
| int32 | CreateLayer
(
FName InName |
||
| void | DeleteLayer
(
int32 InLayerIndex |
||
| void | DeleteLayers () |
||
| FLandscapeLayer * | DuplicateLayerAndMoveBrushes
(
const FLandscapeLayer& InOtherLayer |
||
| void | EnableNaniteSkirts
(
bool bInEnable, |
||
| void | |||
| void | ForceUpdateLayersContent
(
bool bIntermediateRender |
||
| void | ForEachLayer
(
TFunctionRef< void(struct FLandscapeLayer&)> Fn |
||
| FName | GenerateUniqueLayerName
(
FName InName |
||
| TArray< class ALandscapeBlueprintBrushBase * > | GetBrushesForLayer
(
int32 InLayerIndex |
||
| ALandscapeBlueprintBrushBase * | GetBrushForLayer
(
int32 InLayerIndex, |
||
| int32 | GetBrushIndexForLayer
(
int32 InLayerIndex, |
||
| int32 | GetBrushLayer
(
ALandscapeBlueprintBrushBase* InBrush |
||
| float | GetClampedLayerAlpha
(
float InAlpha, |
||
| FBox | Computes & returns bounds containing all landscape proxies (if any) or this landscape's bounds otherwise. | ||
| const FGuid & | |||
| const FLandscapeLayer * | |||
| FLandscapeLayer * | |||
| FLandscapeLayer * | GetLayer
(
int32 InLayerIndex |
||
| const FLandscapeLayer * | GetLayer
(
const FGuid& InLayerGuid |
||
| const FLandscapeLayer * | GetLayer
(
const FName& InLayerName |
||
| const FLandscapeLayer * | GetLayer
(
int32 InLayerIndex |
||
| float | GetLayerAlpha
(
int32 InLayerIndex, |
||
| uint8 | |||
| int32 | GetLayerIndex
(
FName InLayerName |
||
| FBox | Computes & returns bounds containing all currently loaded landscape proxies (if any) or this landscape's bounds otherwise | ||
| uint32 | |||
| TArray< FName > | GetTargetLayerNames
(
bool bInIncludeVisibilityLayer |
Retrieves the names of valid paint layers on this landscape (editor-only : returns nothing at runtime) @Param bInIncludeVisibilityLayer whether the visibility layer's name should be included in the list or not | |
| void | GetUsedPaintLayers
(
int32 InLayerIndex, |
||
| void | GetUsedPaintLayers
(
const FGuid& InLayerGuid, |
||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| void | |||
| bool | |||
| bool | IsLayerBlendSubstractive
(
int32 InLayerIndex, |
||
| bool | IsLayerNameUnique
(
const FName& InName |
||
| bool | |||
| bool | IsUpToDate () |
||
| bool | IsValidRenderTargetFormatHeightmap
(
EPixelFormat InRenderTargetFormat, |
||
| bool | IsValidRenderTargetFormatWeightmap
(
EPixelFormat InRenderTargetFormat, |
||
| void | |||
| FLandscapeBlueprintBrushChangedDelegate & | |||
| FLandscapeFullHeightmapRenderDoneDelegate & | |||
| void | OnLayerInfoSplineFalloffModulationChanged
(
ULandscapeLayerInfoObject* InLayerInfo |
||
| void | OnPreSave () |
||
| void | |||
| void | PostDuplicate
(
bool bDuplicateForPIE |
||
| void | |||
| void | PreEditChange
(
FProperty* PropertyThatWillChange |
||
| bool | PrepareTextureResources
(
bool bInWaitForStreaming |
||
| void | RegisterLandscapeEdMode
(
ILandscapeEdModeInterface* InLandscapeEdMode |
||
| void | |||
| void | RemoveBrush
(
ALandscapeBlueprintBrushBase* InBrush |
||
| void | RemoveBrushFromLayer
(
int32 InLayerIndex, |
||
| void | RemoveBrushFromLayer
(
int32 InLayerIndex, |
||
| bool | RenderHeightmap
(
FTransform InWorldTransform, |
Render the final heightmap in the requested top-down window as one -atlased- texture in the provided render target 2D Can be called at runtime. | |
| bool | RenderWeightmap
(
FTransform InWorldTransform, |
Render the final weightmap for the requested layer, in the requested top-down window, as one -atlased- texture in the provided render target 2D Can be called at runtime. | |
| bool | RenderWeightmaps
(
FTransform InWorldTransform, |
Render the final weightmaps for the requested layers, in the requested top-down window, as one -atlased- texture in the provided render target (2D or 2DArray) Can be called at runtime. | |
| bool | ReorderLayer
(
int32 InStartingLayerIndex, |
||
| bool | ReorderLayerBrush
(
int32 InLayerIndex, |
||
| void | RequestLayersContentUpdate
(
ELandscapeLayerUpdateMode InModeMask |
||
| void | RequestLayersContentUpdateForceAll
(
ELandscapeLayerUpdateMode InModeMask, |
||
| void | RequestLayersInitialization
(
bool bInRequestContentUpdate |
||
| void | |||
| void | SetDisableRuntimeGrassMapGeneration
(
bool bInDisableRuntimeGrassMapGeneration |
||
| void | SetEditingLayer
(
const FGuid& InLayerGuid |
||
| void | SetGrassUpdateEnabled
(
bool bInGrassUpdateEnabled |
||
| void | SetLandscapeSplinesReservedLayer
(
int32 InLayerIndex |
||
| void | SetLayerAlpha
(
int32 InLayerIndex, |
||
| void | SetLayerLocked
(
int32 InLayerIndex, |
||
| void | SetLayerName
(
int32 InLayerIndex, |
||
| void | SetLayerSubstractiveBlendStatus
(
int32 InLayerIndex, |
||
| void | SetLayerVisibility
(
int32 InLayerIndex, |
||
| void | SetLODGroupKey
(
uint32 InLODGroupKey |
||
| void | SetNanitePositionPrecision
(
int32 InPrecision, |
Set the target precision on nanite vertex position. | |
| void | SetUseGeneratedLandscapeSplineMeshesActors
(
bool bInEnabled |
||
| bool | ShouldImport
(
FStringView ActorPropString, |
||
| void | |||
| void | ShowOnlySelectedLayer
(
int32 InLayerIndex |
||
| void | SplitHeightmap
(
ULandscapeComponent* Comp, |
||
| void | TickLayers
(
float DeltaTime |
||
| void | |||
| void | |||
| void | UpdateLandscapeSplines
(
const FGuid& InLayerGuid, |
||
| void | |||
| void |
Overridden from ALandscapeProxy
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
||
| void | Delete all unused layers in components. | ||
| void | |||
| ALandscape * | |||
| const ALandscape * | |||
| bool | Will tell if the landscape proxy as some content related to the layer system | ||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
||
| void | |||
| void | PostEditMove
(
bool bFinished |
||
| void | PostEditUndo () |
||
| void | PostLoad () |
||
| void | |||
| void | UpdateCachedHasLayersContent
(
bool bInCheckComponentDataIntegrity |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FLandscapeBlueprintBrushChangedDelegate | |||
| FLandscapeFullHeightmapRenderDoneDelegate |
Constants
| Name | Description |
|---|---|
| AffectsLandscapeActorDescProperty |