When Broadcast is Received
Fires when a broadcast sent by any object reaches this UI object while its canvas is active.
Introduction
When Broadcast is Received is an event in the Broadcast group of UI Events. It fires when a broadcast sent by any object reaches this UI object. When it fires, the event hands one value to your script: the Sender , so you know exactly which object sent the broadcast. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. Broadcasts connect the world to your interface: a switch, a trigger, or any object can send on a channel, and this event catches it inside the UI. The world-side twin - On Receiving Broadcast in World Events - listens on objects instead of panels. Once the message arrives, hand the interaction to gesture events like When Tapped or When Pressed , and see the UI System Architecture guide for how channels and panels fit together. When Broadcast is Received event in the UI Editor when-broadcast-is-received-introduction.png The When Broadcast is Received event in the UI Editor.
Parameters
Sender the Object that sent the Broadcast Parameter Description
How to Access
How to Access - When Broadcast is Received
Example
When Broadcast is Received event with a Refresh Shop Items command when-broadcast-is-received-example.webp Example: one item is removed from the player's inventory the moment the broadcast arrives. caption
How to Use
Open the UI Editor and press the UI Property button (the document icon in the top toolbar) without selecting any element, the UI Base panel opens on the right. In the panel's Event Triggers section, find When broadcast is received and press Scripts + next to it, pick the Broadcast channel it should listen to, and add the actions that should run when the signal arrives below it. Press Play and fire that Broadcast from another script while this UI is active, then check that the actions run. Important: A broadcast only reaches a listener while that listener's canvas is active. World UI pages receive signals only while they are on screen, Prop UI only while the prop is equipped, and Vehicle UI only while the player sits in the driver's seat. If UI 1 is on screen and the listener sits in UI 2, the signal is lost because UI 2 is inactive. To receive broadcasts on every screen at any time, put the listener in the Character UI instead, which stays active for as long as the character exists in the world.
Common Uses
Refreshing panels when data changes elsewhere Syncing several UI objects at once Opening or closing panels from world logic
Tip
UI objects listen to the same broadcasts as world objects. One send can update the world and its UI together.