Update Connect method example (#9202)

Update Connect method example
This commit is contained in:
dawei-wang
2024-04-10 05:04:35 -07:00
committed by GitHub
parent c03b82d405
commit 1677faab23

View File

@@ -65,7 +65,7 @@ initialize it:
.. code-tab:: csharp
// Parent
GetNode("Child").Connect("SignalName", ObjectWithMethod, "MethodOnTheObject");
GetNode("Child").Connect("SignalName", Callable.From(ObjectWithMethod.MethodOnTheObject));
// Child
EmitSignal("SignalName"); // Triggers parent-defined behavior.