[UE4]多播代理实例
.h
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FLoginErrorEvent, FString, ErrorMessage); UPROPERTY(BlueprintAssignable, Category = "Event") FLoginErrorEvent loginErrorEvent;
.cpp
loginErrorEvent.Broadcast(TEXT("hello World"));
.h
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FLoginErrorEvent, FString, ErrorMessage); UPROPERTY(BlueprintAssignable, Category = "Event") FLoginErrorEvent loginErrorEvent;
.cpp
loginErrorEvent.Broadcast(TEXT("hello World"));