Edit of asset "Global Signal Nodes (Auto-bus fork)" Accepted
Old/Current | New/Edit | |
---|---|---|
Title | Global Signal Nodes (Auto-bus fork) | Global Signal Nodes (Auto-bus fork) |
Description |
# Global Signal Nodes (Auto-bus fork) ## Description The purpose of the addon is to dynamically create global signals on shared signal bus (event bus) without the need to create a singleton to manage it. The addon adds 3 nodes: + SignalEmitter <- a node representing a signal emitter, where the 'emit_to' property is the signal's name. + SignalReceiver <- a node representing a signal receiver, where the 'react_to' property is the name of the signal it expects to receive. + SignalRegister <- a node representing a signal registrator, where the 'signals' property is the list of signals to be registered on bus. To quickly test classes, place this code in your _ready(): ```gdscript SignalReceiver.register("test", print) # immediately creates and registers global signal await get_tree().process_frame # wait a frame, because some operations processes deferred SignalEmitter.fire("test", "test ok") # this prints that, and works everywhere ``` |
# Global Signal Nodes (Auto-bus fork) ## Description The purpose of the addon is to dynamically create global signals on shared signal bus (event bus) without the need to create a singleton to manage it. The addon adds 3 nodes: + SignalEmitter <- a node representing a signal emitter, where the 'emit_to' property is the signal's name. + SignalReceiver <- a node representing a signal receiver, where the 'react_to' property is the name of the signal it expects to receive. + SignalRegister <- a node representing a signal registrator, where the 'signals' property is the list of signals to be registered on bus. To quickly test classes, place this code in your _ready(): ```gdscript SignalReceiver.register("test", print) # immediately creates and registers global signal await get_tree().process_frame # wait a frame, because some operations processes deferred SignalEmitter.fire("test", "test ok") # this prints that, and works everywhere ``` |
Category | Scripts | Scripts |
License | MIT | MIT |
Repository Provider | GitHub | GitHub |
Repository Url | https://github.com/akasob/auto_bus_nodes | https://github.com/akasob/auto_bus_nodes |
Issues Url | https://github.com/akasob/auto_bus_nodes/issues | https://github.com/akasob/auto_bus_nodes/issues |
Godot version | Godot 4.0 | Godot 4.0 |
Version String | 1.0 | 1.0 |
Download Commit | c72e67811a7621c38592f7131a3d2fc543752581 | c72e67811a7621c38592f7131a3d2fc543752581 |
Download Url (Computed) | https://github.com/akasob/auto_bus_nodes/archive/c72e67811a7621c38592f7131a3d2fc543752581.zip | https://github.com/akasob/auto_bus_nodes/archive/c72e67811a7621c38592f7131a3d2fc543752581.zip |
Icon Url |
https://raw.githubusercontent.com/akasob/auto_bus_nodes/refs/heads/main/addons/auto-bus/icons/addon_icon.png
![]() |
https://raw.githubusercontent.com/akasob/auto_bus_nodes/refs/heads/main/addons/auto-bus/icons/addon_icon.png
![]() |