.h
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FLoginErrorEvent, FString, ErrorMessage);UPROPERTY(BlueprintAssignable, Category = "Event")FLoginErrorEvent loginErrorEvent;
.cpp
loginErrorEvent.Broadcast(TEXT("hello World"));
本文共 273 字,大约阅读时间需要 1 分钟。
.h
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FLoginErrorEvent, FString, ErrorMessage);UPROPERTY(BlueprintAssignable, Category = "Event")FLoginErrorEvent loginErrorEvent;
.cpp
loginErrorEvent.Broadcast(TEXT("hello World"));
转载于:https://www.cnblogs.com/timy/p/8684338.html