[UE4]多播代理实例

.h

DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FLoginErrorEvent, FString, ErrorMessage);
UPROPERTY(BlueprintAssignable, Category = "Event")
FLoginErrorEvent  loginErrorEvent;

.cpp

loginErrorEvent.Broadcast(TEXT("hello World"));

posted on 2018-03-31 21:36  一粒沙  阅读(1282)  评论(0编辑  收藏  举报