Navigation
API > API/Runtime > API/Runtime/Landscape
| Name | ULandscapeTextureHash |
| Type | class |
| Header File | /Engine/Source/Runtime/Landscape/Classes/LandscapeTextureHash.h |
| Include Path | #include "LandscapeTextureHash.h" |
Syntax
UCLASS (NotBlueprintable, MinimalAPI, Within=Texture2D)
class ULandscapeTextureHash : public UAssetUserData
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UAssetUserData → ULandscapeTextureHash
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LastSourceID | FGuid | LandscapeTextureHash.h | ||
| RecentlySerializedHashes | TMap< FGuid, FGuid > | Cache of recently serialized hash values this ensure that if the texture is brought back to match exactly a recently serialized state, it will have exactly the same hash that it was serialized with. | LandscapeTextureHash.h | |
| TextureHashGUID | FGuid | LandscapeTextureHash.h | ||
| TextureType | ELandscapeTextureType | Heightmap or weightmap. When unknown, we fallback to using the texture source ID as hash (old behavior) | LandscapeTextureHash.h | |
| TextureUsage | ELandscapeTextureUsage | Edit layer data or final data. When unknown, we fallback to using the texture source ID as hash (old behavior) | LandscapeTextureHash.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsEditorOnly() |
LandscapeTextureHash.h | ||
virtual bool NeedsLoadForClient() |
LandscapeTextureHash.h | ||
virtual bool NeedsLoadForServer() |
LandscapeTextureHash.h | ||
virtual void Serialize
(
FArchive& Ar |
LandscapeTextureHash.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static uint64 CalculateTextureHash64
(
UTexture2D* LandscapeTexture, |
Calculate the texture hash directly from the source mip0 contents | LandscapeTextureHash.h | |
static uint64 CalculateTextureHash64
(
const FColor* Mip0Data, |
Calculate the texture hash from the Mip0Data buffer | LandscapeTextureHash.h | |
static FGuid CalculateTextureHashGUID
(
UTexture2D* LandscapeTexture, |
LandscapeTextureHash.h | ||
static void CheckHashIsUpToDate
(
UTexture2D* LandscapeTexture |
Check the hash is up to date. | LandscapeTextureHash.h | |
static bool DoesTextureDataChangeExceedThreshold
(
const FColor* Mip0Data, |
Check if the Mip0Data is within the change threshold of OldMip0Data | LandscapeTextureHash.h | |
static FGuid GetHash
(
UTexture2D* LandscapeTexture |
Get the current stored hash for the landscape texture, checking that it is up to date | LandscapeTextureHash.h | |
static void SetHash64
(
UTexture2D* LandscapeTexture, |
Explicitly set the hash for the specified LandscapeTexture. | LandscapeTextureHash.h | |
static void SetInitialStateOnPostLoad
(
UTexture2D* LandscapeTexture, |
Setup initial state on load, if it doesn't yet exist | LandscapeTextureHash.h | |
static void UpdateHash
(
UTexture2D* LandscapeTexture, |
Update the stored hash based on the source data. | LandscapeTextureHash.h |