UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LandscapeDataAccess.h File Reference
#include "CoreMinimal.h"
#include "Engine/Texture2D.h"

Go to the source code of this file.

Namespaces

namespace  LandscapeDataAccess
 

Macros

#define LANDSCAPE_VALIDATE_DATA_ACCESS   1
 
#define LANDSCAPE_ZSCALE   (1.0f/128.0f)
 
#define LANDSCAPE_INV_ZSCALE   128.0f
 
#define LANDSCAPE_XYOFFSET_SCALE   UE_DEPRECATED_MACRO(5.7, "RetopologizeTool/XYOffset deprecated with the removal of non-edit layer landscapes") (1.0f/256.f)
 
#define LANDSCAPE_INV_XYOFFSET_SCALE   UE_DEPRECATED_MACRO(5.7, "RetopologizeTool/XYOffset deprecated with the removal of non-edit layer landscapes") 256.f
 
#define LANDSCAPE_VISIBILITY_THRESHOLD   (2.0f/3.0f)
 

Functions

FORCEINLINE float LandscapeDataAccess::GetLocalHeight (uint16 Height)
 
FORCEINLINE uint16 LandscapeDataAccess::GetTexHeight (float Height)
 
FORCEINLINE FColor LandscapeDataAccess::PackHeight (uint16 Height)
 
FORCEINLINE float LandscapeDataAccess::UnpackHeight (const FColor &InHeightmapSample)
 
FORCEINLINE FVector LandscapeDataAccess::UnpackNormal (const FColor &InHeightmapSample)
 

Variables

constexpr int32 LandscapeDataAccess::MaxValue = 65535
 
constexpr float LandscapeDataAccess::MidValue = 32768.f
 

Macro Definition Documentation

◆ LANDSCAPE_INV_XYOFFSET_SCALE

#define LANDSCAPE_INV_XYOFFSET_SCALE   UE_DEPRECATED_MACRO(5.7, "RetopologizeTool/XYOffset deprecated with the removal of non-edit layer landscapes") 256.f

◆ LANDSCAPE_INV_ZSCALE

#define LANDSCAPE_INV_ZSCALE   128.0f

◆ LANDSCAPE_VALIDATE_DATA_ACCESS

#define LANDSCAPE_VALIDATE_DATA_ACCESS   1

◆ LANDSCAPE_VISIBILITY_THRESHOLD

#define LANDSCAPE_VISIBILITY_THRESHOLD   (2.0f/3.0f)

◆ LANDSCAPE_XYOFFSET_SCALE

#define LANDSCAPE_XYOFFSET_SCALE   UE_DEPRECATED_MACRO(5.7, "RetopologizeTool/XYOffset deprecated with the removal of non-edit layer landscapes") (1.0f/256.f)

◆ LANDSCAPE_ZSCALE

#define LANDSCAPE_ZSCALE   (1.0f/128.0f)