Navigation
Unreal Engine C++ API Reference > Runtime > Landscape
Inheritance Hierarchy
References
Module | Landscape |
Header | /Engine/Source/Runtime/Landscape/Classes/Landscape.h |
Include | #include "Landscape.h" |
Syntax
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. | |
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 | |
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 | |||
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 * | |||
const FLandscapeLayer * | GetLayer
(
int32 InLayerIndex |
||
const FLandscapeLayer * | |||
const FLandscapeLayer * | |||
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 | |||
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, |
||
void | |||
FLandscapeBlueprintBrushChangedDelegate & | |||
FLandscapeFullHeightmapRenderDoneDelegate & | |||
void | OnLayerInfoSplineFalloffModulationChanged
(
ULandscapeLayerInfoObject* InLayerInfo |
||
void | OnPreSave () |
||
bool | PrepareTextureResources
(
bool bInWaitForStreaming |
||
void | RegisterLandscapeEdMode
(
ILandscapeEdModeInterface* InLandscapeEdMode |
||
void | |||
void | RemoveBrush
(
ALandscapeBlueprintBrushBase* InBrush |
||
void | RemoveBrushFromLayer
(
int32 InLayerIndex, |
||
void | RemoveBrushFromLayer
(
int32 InLayerIndex, |
||
void | RenderHeightmap
(
const FTransform& InWorldTransform, |
||
bool | ReorderLayer
(
int32 InStartingLayerIndex, |
||
bool | ReorderLayerBrush
(
int32 InLayerIndex, |
||
void | RequestLayersContentUpdate
(
ELandscapeLayerUpdateMode InModeMask |
||
void | RequestLayersContentUpdateForceAll
(
ELandscapeLayerUpdateMode InModeMask, |
||
void | RequestLayersInitialization
(
bool bInRequestContentUpdate |
||
void | |||
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 | SetUseGeneratedLandscapeSplineMeshesActors
(
bool bInEnabled |
||
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 | |
---|---|---|---|
const ALandscape * | |||
ALandscape * | |||
bool | Will tell if the landscape proxy as some content related to the layer system | ||
void | UpdateCachedHasLayersContent
(
bool bInCheckComponentDataIntegrity |
Overridden from AActor
Type | Name | Description | |
---|---|---|---|
bool | Returns true if this actor allows changing the spatially loaded flag. | ||
bool | CanDeleteSelectedActor
(
FText& OutReason |
When selected can this actor be deleted? | |
void | Called when an actor is done spawning into the world (from UWorld::SpawnActor), both in the editor and during gameplay For actors with a root component, the location and rotation will have already been set. | ||
void | PostEditMove
(
bool bFinished |
Called after an actor has been moved in the editor | |
void | Called after all the components in the Components array are registered, called both in editor and during gameplay. | ||
bool | ShouldImport
(
FStringView ActorPropString, |
Called before editor paste, true allow import |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
void | BeginDestroy () |
Called before destroying the object. | |
void | Called to finish destroying the object. | ||
void | PostDuplicate
(
bool bDuplicateForPIE |
Called after duplication & serialization and before PostLoad. | |
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
void | Called after importing property values for this object (paste, duplicate or .t3d import) Allow the object to perform any cleanup for properties which shouldn't be duplicated or are unsupported by the script serialization | ||
void | PostEditUndo () |
Called after applying a transaction to the object. | |
void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. | ||
void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
void | PreEditChange
(
FProperty* PropertyAboutToChange |
This is called when a property is about to be modified externally |
Classes
Type | Name | Description | |
---|---|---|---|
FLandscapeBlueprintBrushChangedDelegate | |||
FLandscapeFullHeightmapRenderDoneDelegate |
Constants
Name | Description |
---|---|
AffectsLandscapeActorDescProperty |