mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
* [Instancing with signals] Updated to 4.0 Basically started with changing `instance()` to `instantiate()` Was a good chance to also upgrade the badly named `b` variables into proper intuitive names. It's a good tutorial, short and to the point, though kinda abstract so I don't think there is anything more to add (if I put an image above the final codeblock, on how to add a signal via UI, it would ruin the abstraction imo) * Made the signal location a bit more obvious * Updated signal emission to 4.0 syntax Interesting that emit_signal did work, backwards compatibility ftw! `emit_signal()` its less intuitive as you must know a "magical function" of Godot instead of using the obvious variable, and also takes string argument lmao