Unreal Engine 4 (UE4) How to send data (communicate) from a class blueprint to the level blueprint. Class broadcasts that something happened in that class. This example shows a hit event against a mesh component and tells other blueprints that this happened.
Create an event dispatcher by clicking the main event dispatcher icon in the My Blueprint panel. Name the event dispatcher appropriately.
An event dispatcher creates an event for which other blueprints can listen. It's a way to broadcast to any other blueprint that something happened in this class blueprint.
Drag that event dispatcher into the event graph and click on call. Setup an event hit to determine if a mesh is hit by right clicking on the graph and typing event hit and selecting it. The event hit can be connected to the event dispatcher so all blueprints will know about it.
In the other blueprint (i.e. the level blueprint), with the
Comments and Additional Information
Have some code to share? Or additional information? Respond here:
You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.