Description

In UE 4.21, The current functionality that exists for DECLARE_EVENT Broadcast() does not function as the docs describe:

[Delegate Events|https://docs.unrealengine.com/en-us/Programming/UnrealArchitecture/Delegates/Events]

 
"Events are very similar to multi-cast delegates . However, while any class can bind events, only the class that declares the event may invoke the event's Broadcast, IsBound, and Clear functions."  
 
However, it can be called outside of it's containing class.  Users have reported that this behavior has existed since the implementation of the following CL:  CL 2672383 
 
 
 

Steps to Reproduce

I've included a sample project of this behavior.

  1. Unzip the attached project.
  2. Right click on EventBroadcastPublic.uproject and Generate Visual Studio project files.
  3. Open Visual Studio project.
  4. Build EventBroadcastPublic target.

 

Expected: Build should fail due to the class not declaring the event.

Result: Build Succeeds.

Community References

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-67922 in the post.

11
Login to Vote

Won't Fix
ComponentUE - Foundation - Core
Affects Versions4.194.204.214.22
CreatedJan 2, 2019
ResolvedAug 27, 2021
UpdatedAug 27, 2021