UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSlateAttributeDescriptor::FInitializer::FAttributeEntry Struct Reference

#include <SlateAttributeDescriptor.h>

Public Member Functions

SLATECORE_API FAttributeEntry (FSlateAttributeDescriptor &Descriptor, int32 InAttributeIndex)
 
SLATECORE_API FAttributeEntryUpdatePrerequisite (FName Prerequisite)
 
SLATECORE_API FAttributeEntryAffectVisibility ()
 
SLATECORE_API FAttributeEntryOnValueChanged (FAttributeValueChangedDelegate Callback)
 

Constructor & Destructor Documentation

◆ FAttributeEntry()

FSlateAttributeDescriptor::FInitializer::FAttributeEntry::FAttributeEntry ( FSlateAttributeDescriptor Descriptor,
int32  InAttributeIndex 
)

Member Function Documentation

◆ AffectVisibility()

FSlateAttributeDescriptor::FInitializer::FAttributeEntry & FSlateAttributeDescriptor::FInitializer::FAttributeEntry::AffectVisibility ( )

The attribute affect the visibility of the widget. We only update the attributes that can change the visibility of the widget when the widget is collapsed. Attributes that affect visibility must have the Visibility attribute as a Prerequisite or the Visibility attribute must have it as a Prerequisite.

◆ OnValueChanged()

FSlateAttributeDescriptor::FInitializer::FAttributeEntry & FSlateAttributeDescriptor::FInitializer::FAttributeEntry::OnValueChanged ( FAttributeValueChangedDelegate  Callback)

Notified when the attribute value changed. It's preferable that you delay any action to the Tick or Paint function. You are not allowed to make changes that would affect the SWidget ChildOrder or its Visibility. It will not be called when the SWidget is in its construction phase.

See also
SWidget::IsConstructed

◆ UpdatePrerequisite()

FSlateAttributeDescriptor::FInitializer::FAttributeEntry & FSlateAttributeDescriptor::FInitializer::FAttributeEntry::UpdatePrerequisite ( FName  Prerequisite)

Update the attribute after the prerequisite. The order is guaranteed but other attributes may be updated in between. No order is guaranteed if the prerequisite or this property is updated manually.


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