We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
#[signal]
1 parent 88d8ed0 commit 1bf28f3Copy full SHA for 1bf28f3
godot-macros/src/lib.rs
@@ -323,7 +323,7 @@ use crate::util::ident;
323
///
324
/// # Signals
325
326
-/// The `#[signal]` attribute is quite limited at the moment and can only be used for parameter-less signals.
+/// The `#[signal]` attribute is quite limited at the moment. The functions it decorates (the signals) can accept parameters.
327
/// It will be fundamentally reworked.
328
329
/// ```no_run
@@ -336,6 +336,9 @@ use crate::util::ident;
336
/// impl MyClass {
337
/// #[signal]
338
/// fn some_signal();
339
+///
340
+/// #[signal]
341
+/// fn some_signal_with_parameters(my_parameter: Gd<Node>);
342
/// }
343
/// ```
344
0 commit comments