![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SlateAttributeDescriptor.h>
Public Member Functions | |
| SLATECORE_API | FAttributeEntry (FSlateAttributeDescriptor &Descriptor, int32 InAttributeIndex) |
| SLATECORE_API FAttributeEntry & | UpdatePrerequisite (FName Prerequisite) |
| SLATECORE_API FAttributeEntry & | AffectVisibility () |
| SLATECORE_API FAttributeEntry & | OnValueChanged (FAttributeValueChangedDelegate Callback) |
| FSlateAttributeDescriptor::FInitializer::FAttributeEntry::FAttributeEntry | ( | FSlateAttributeDescriptor & | Descriptor, |
| int32 | InAttributeIndex | ||
| ) |
| 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.
| 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.
| 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.