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

#include <SlateRHIResourceManager.h>

Public Member Functions

 FMaterialKey (const UMaterialInterface *InMaterial, const FVector2f InImageSize, int32 InMaskKey)
 

Public Attributes

FObjectKey Material
 
const FVector2f ImageSize
 
int32 MaskKey
 

Friends

bool operator== (const FMaterialKey &Lhs, const FMaterialKey &Rhs)
 
uint32 GetTypeHash (const FMaterialKey &Key)
 

Detailed Description

Lookup key for materials. Sometimes the same material is used with different masks so there must be unique resource per material/mask combination

Constructor & Destructor Documentation

◆ FMaterialKey()

FMaterialKey::FMaterialKey ( const UMaterialInterface InMaterial,
const FVector2f  InImageSize,
int32  InMaskKey 
)
inline

Friends And Related Symbol Documentation

◆ GetTypeHash

uint32 GetTypeHash ( const FMaterialKey Key)
friend

◆ operator==

bool operator== ( const FMaterialKey Lhs,
const FMaterialKey Rhs 
)
friend

Member Data Documentation

◆ ImageSize

const FVector2f FMaterialKey::ImageSize

◆ MaskKey

int32 FMaterialKey::MaskKey

◆ Material

FObjectKey FMaterialKey::Material

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