mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
C# signal delegates must be public
This commit is contained in:
@@ -36,7 +36,7 @@ In addition, you can always access signal names associated with a node type thro
|
||||
Custom signals as C# events
|
||||
---------------------------
|
||||
|
||||
To declare a custom event in your C# script, use the ``[Signal]`` attribute on a delegate type.
|
||||
To declare a custom event in your C# script, use the ``[Signal]`` attribute on a public delegate type.
|
||||
Note that the name of this delegate needs to end with ``EventHandler``.
|
||||
|
||||
.. code-block:: csharp
|
||||
|
||||
Reference in New Issue
Block a user