UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FHeightmapTextureEdgeSnapshot Struct Reference

#include <LandscapeEdgeFixup.h>

Public Member Functions

TArrayView< UE::Landscape::FHeightmapTexelGetEdgeData (UE::Landscape::EEdgeIndex InEdgeIndex, int32 InMipIndex)
 
UE::Landscape::FHeightmapTexel GetCornerData (UE::Landscape::EEdgeIndex InEdgeIndex)
 
UE::Landscape::EEdgeFlags CompareEdges (const FHeightmapTextureEdgeSnapshot &OldSnapshot) const
 
FString GetTextureSourceIDAsString ()
 

Static Public Member Functions

static TSharedRef< FHeightmapTextureEdgeSnapshotCreateEdgeSnapshotFromTextureData (const TArrayView64< UE::Landscape::FHeightmapTexel > &InHeightmapTextureData, int32 InEdgeLength, const FVector &LandscapeGridScale)
 

Friends

class ULandscapeHeightmapTextureEdgeFixup
 
FArchiveoperator<< (FArchive &Ar, FHeightmapTextureEdgeSnapshot &Data)
 

Detailed Description

The snapshots contain a copy of the heightmap edge texels (both height and normal info). It is filled out in editor or at cook time, to make available at runtime for dynamic edge fixup.

Member Function Documentation

◆ CompareEdges()

UE::Landscape::EEdgeFlags FHeightmapTextureEdgeSnapshot::CompareEdges ( const FHeightmapTextureEdgeSnapshot OldSnapshot) const

◆ CreateEdgeSnapshotFromTextureData()

TSharedRef< FHeightmapTextureEdgeSnapshot > FHeightmapTextureEdgeSnapshot::CreateEdgeSnapshotFromTextureData ( const TArrayView64< UE::Landscape::FHeightmapTexel > &  InHeightmapTextureData,
int32  InEdgeLength,
const FVector LandscapeGridScale 
)
static

◆ GetCornerData()

UE::Landscape::FHeightmapTexel FHeightmapTextureEdgeSnapshot::GetCornerData ( UE::Landscape::EEdgeIndex  InEdgeIndex)

◆ GetEdgeData()

TArrayView< UE::Landscape::FHeightmapTexel > FHeightmapTextureEdgeSnapshot::GetEdgeData ( UE::Landscape::EEdgeIndex  InEdgeIndex,
int32  InMipIndex 
)

Return edge snapshot data for this component, for the specified neighbor direction and mip. Horizontal edges are stored left to right, and vertical edges bottom to top.

◆ GetTextureSourceIDAsString()

FString FHeightmapTextureEdgeSnapshot::GetTextureSourceIDAsString ( )
inline

Friends And Related Symbol Documentation

◆ operator<<

FArchive & operator<< ( FArchive Ar,
FHeightmapTextureEdgeSnapshot Data 
)
friend

◆ ULandscapeHeightmapTextureEdgeFixup


The documentation for this struct was generated from the following files: