From 83dac9cdb88b7737fa72b44c84d684af55638e4b Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 2 Oct 2024 16:36:19 +0200 Subject: [PATCH] Document `Object.has_signal()` in the Signal class reference --- doc/classes/Signal.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/Signal.xml b/doc/classes/Signal.xml index c970ccb0943..b9ec34956f1 100644 --- a/doc/classes/Signal.xml +++ b/doc/classes/Signal.xml @@ -4,7 +4,7 @@ A built-in type representing a signal of an [Object]. - [Signal] is a built-in [Variant] type that represents a signal of an [Object] instance. Like all [Variant] types, it can be stored in variables and passed to functions. Signals allow all connected [Callable]s (and by extension their respective objects) to listen and react to events, without directly referencing one another. This keeps the code flexible and easier to manage. + [Signal] is a built-in [Variant] type that represents a signal of an [Object] instance. Like all [Variant] types, it can be stored in variables and passed to functions. Signals allow all connected [Callable]s (and by extension their respective objects) to listen and react to events, without directly referencing one another. This keeps the code flexible and easier to manage. You can check whether an [Object] has a given signal name using [method Object.has_signal]. In GDScript, signals can be declared with the [code]signal[/code] keyword. In C#, you may use the [code][Signal][/code] attribute on a delegate. [codeblocks] [gdscript]