FMaterialKey

This helps identify materials that can be collapsed because of equivalence

Unreal Engine C++ API Reference > Developer > MeshMergeUtilities

References

   
Module MeshMergeUtilities
Header /Engine/Source/Developer/MeshMergeUtilities/Public/MeshMergeDataTracker.h
Include #include "MeshMergeDataTracker.h"

Syntax

struct FMaterialKey  

Remarks

This helps identify materials that can be collapsed because of equivalence

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

Variables

Type Name Description
const FVector2f ImageSize  
int32 MaskKey  
const UMaterial... Material  
TWeakObjectPtr<... Material  

Constructors

Type Name Description
  FMaterialKey ( const UMaterialInterface* InMa... )  
  FMaterialKey ( const UMaterialInterface* InMa..., const FVector2f InImageSize, int32 InMaskKey )  

Operators

Type Name Description
bool operator== ( const FMaterialKey& Other )  

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library