UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FWidgetMaterialHandle Class Reference

#include <WidgetMaterialTrackUtilities.h>

Public Member Functions

 FWidgetMaterialHandle ()
 
 FWidgetMaterialHandle (FName InTypeName, void *InData)
 
bool IsValid () const
 
UMG_API UMaterialInterfaceGetMaterial () const
 
UMG_API void SetMaterial (UMaterialInterface *InMaterial, UWidget *OwnerWidget)
 

Friends

uint32 GetTypeHash (const FWidgetMaterialHandle &In)
 
bool operator== (const FWidgetMaterialHandle &A, const FWidgetMaterialHandle &B)
 
bool operator!= (const FWidgetMaterialHandle &A, const FWidgetMaterialHandle &B)
 

Detailed Description

Handle to a widget material for easy getting and setting of the material. Not designed to be stored

Constructor & Destructor Documentation

◆ FWidgetMaterialHandle() [1/2]

FWidgetMaterialHandle::FWidgetMaterialHandle ( )
inline

◆ FWidgetMaterialHandle() [2/2]

FWidgetMaterialHandle::FWidgetMaterialHandle ( FName  InTypeName,
void InData 
)
inline

Member Function Documentation

◆ GetMaterial()

UMaterialInterface * FWidgetMaterialHandle::GetMaterial ( ) const

Gets the currently bound material

◆ IsValid()

bool FWidgetMaterialHandle::IsValid ( ) const
inline
Returns
true if this handle points to valid data

◆ SetMaterial()

void FWidgetMaterialHandle::SetMaterial ( UMaterialInterface InMaterial,
UWidget OwnerWidget 
)

Sets the new bound material

Friends And Related Symbol Documentation

◆ GetTypeHash

uint32 GetTypeHash ( const FWidgetMaterialHandle In)
friend

◆ operator!=

bool operator!= ( const FWidgetMaterialHandle A,
const FWidgetMaterialHandle B 
)
friend

◆ operator==

bool operator== ( const FWidgetMaterialHandle A,
const FWidgetMaterialHandle B 
)
friend

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