![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "LandscapeModule.h"#include "Containers/Ticker.h"#include "Serialization/CustomVersion.h"#include "Modules/ModuleManager.h"#include "UObject/UObjectHash.h"#include "UObject/Package.h"#include "Engine/World.h"#include "Materials/MaterialInterface.h"#include "LandscapeComponent.h"#include "LandscapeVersion.h"#include "LandscapeInfoMap.h"#include "LandscapeHeightfieldCollisionComponent.h"#include "Materials/MaterialInstance.h"#include "LandscapeProxy.h"#include "Landscape.h"#include "LandscapeRender.h"#include "LandscapeSplineActor.h"#include "Engine/Texture2D.h"#include "EngineUtils.h"#include "Chaos/PhysicalMaterials.h"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")) |
| #define ALLOW_LANDSCAPE_COLLISION_COMPONENT_DEBUG_DISPLAY !(UE_BUILD_SHIPPING || UE_BUILD_TEST) |
Add landscape-specific per-world data.
| World | A pointer to world that this data should be created for. |
| IMPLEMENT_MODULE | ( | FLandscapeModule | , |
| Landscape | |||
| ) |
Function that will fire every time a world is created.
| World | A world that was created. |
| IVS | Initialization values. |
Function that will fire every time a world is destroyed.
| World | A world that's being destroyed. |
| 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.
| World | A world that was duplicated. |
| bDuplicateForPIE | If this duplication was done for PIE. |
| ReplacementMap | Replacement map (i.e. old object -> new object). |
| ObjectsToFixReferences | Array of objects that may contain bad references to old objects. |
| FCustomVersionRegistration GRegisterLandscapeCustomVersion(FLandscapeCustomVersion::GUID, FLandscapeCustomVersion::LatestVersion, TEXT("Landscape")) | ( | FLandscapeCustomVersion::GUID | , |
| FLandscapeCustomVersion::LatestVersion | , | ||
| TEXT("Landscape") | |||
| ) |