The Godot Barn
Sign in
Sign in
Home
News & updates
Explore
Articles
Snippets
Shaders
Themes
Submit content
Sign in to submit content
Give or get help
Tutorials
Questions
Conversations
Coming soon!
bus
Recent snippets tagged «bus»
0
0
extends Node var event_signal_ids: Dictionary[StringName, StringName] var event_last_call: Dictionary[StringName, Array] var event_signal_current_id: int = 1 func create_signal_id() -> StringName: var id: int = event_signal_current_id
Event-based game logic
Chromazu
Aug 17th, 2026
A simple, but powerful, singleton script handles global game events.
Godot
4.x
GDScript
bus
event
singleton
0
1
extends Node signal on_message(message) func send_message(message : String) -> void: call_deferred("emit_message", message) func emit_message(message : String) -> void:
Message Bus
Casual Garage Coder
Dec 06th, 2024
Autoload script to broadcast message across the application
Godot
4.x
GDScript
bus
autoload
Filters
Contents containing
Language
GDScript
C#
Both
License
All licenses
CC-BY
CC0
GPLv3
AGPLv3
MIT
Unlicense
Godot version(s)
All versions
Godot 3.x
Godot 4.x
Godot 4.0
Godot 4.1
Godot 4.2
Godot 4.3
Godot 4.4
Godot 4.5
Reset filters
Apply filters
Popular tags recently
functions
Colors
first-person
bus
UI
mesh
camera3d
controller
utility
2d
Procedural generation
tool
class_name
input
camera
Please wait ...
Okay
Okay
No
Yes
Okay