UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LandscapeModule.cpp File Reference

Classes

class  FLandscapeModule
 

Macros

#define ALLOW_LANDSCAPE_COLLISION_COMPONENT_DEBUG_DISPLAY   !(UE_BUILD_SHIPPING || UE_BUILD_TEST)
 

Functions

void AddPerWorldLandscapeData (UWorld *World)
 
void WorldCreationEventFunction (UWorld *World)
 
void WorldDestroyEventFunction (UWorld *World)
 
void WorldDuplicateEventFunction (UWorld *World, bool bDuplicateForPIE, TMap< UObject *, UObject * > &ReplacementMap, TArray< UObject * > &ObjectsToFixReferences)
 
 IMPLEMENT_MODULE (FLandscapeModule, Landscape)
 

Variables

FCustomVersionRegistration GRegisterLandscapeCustomVersion (FLandscapeCustomVersion::GUID, FLandscapeCustomVersion::LatestVersion, TEXT("Landscape"))
 

Macro Definition Documentation

◆ ALLOW_LANDSCAPE_COLLISION_COMPONENT_DEBUG_DISPLAY

#define ALLOW_LANDSCAPE_COLLISION_COMPONENT_DEBUG_DISPLAY   !(UE_BUILD_SHIPPING || UE_BUILD_TEST)

Function Documentation

◆ AddPerWorldLandscapeData()

void AddPerWorldLandscapeData ( UWorld World)

Add landscape-specific per-world data.

Parameters
WorldA pointer to world that this data should be created for.

◆ IMPLEMENT_MODULE()

IMPLEMENT_MODULE ( FLandscapeModule  ,
Landscape   
)

◆ WorldCreationEventFunction()

void WorldCreationEventFunction ( UWorld World)

Function that will fire every time a world is created.

Parameters
WorldA world that was created.
IVSInitialization values.

◆ WorldDestroyEventFunction()

void WorldDestroyEventFunction ( UWorld World)

Function that will fire every time a world is destroyed.

Parameters
WorldA world that's being destroyed.

◆ WorldDuplicateEventFunction()

void WorldDuplicateEventFunction ( UWorld World,
bool  bDuplicateForPIE,
TMap< UObject *, UObject * > &  ReplacementMap,
TArray< UObject * > &  ObjectsToFixReferences 
)

A function that fires everytime a world is duplicated.

If there are some objects duplicated during this event fill out ReplacementMap and ObjectsToFixReferences in order to properly fix references in objects created during this duplication.

Parameters
WorldA world that was duplicated.
bDuplicateForPIEIf this duplication was done for PIE.
ReplacementMapReplacement map (i.e. old object -> new object).
ObjectsToFixReferencesArray of objects that may contain bad references to old objects.

Variable Documentation

◆ GRegisterLandscapeCustomVersion

FCustomVersionRegistration GRegisterLandscapeCustomVersion(FLandscapeCustomVersion::GUID, FLandscapeCustomVersion::LatestVersion, TEXT("Landscape")) ( FLandscapeCustomVersion::GUID  ,
FLandscapeCustomVersion::LatestVersion  ,
TEXT("Landscape")   
)