Files
UnrealEngine/Engine/Source/Runtime/UMG/Public/FieldNotification/WidgetEventField.h
2025-05-18 13:04:45 +08:00

27 lines
472 B
C

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "WidgetEventField.generated.h"
/**
* Generic structure to notify when an event occurs.
*
* class UMyWidget : public UWidget
* {
* UPROPERTY(FieldNotify)
* FWidgetEventField SomeEvent;
*
* void OnSomeEvent()
* {
* BroadcastFieldValueChanged(FFieldNotificationClassDescriptor::Text);
* }
* };
};
*/
USTRUCT(BlueprintType)
struct FWidgetEventField
{
GENERATED_BODY()
};