Skip to content

Commit 1677faa

Browse files
authored
Update Connect method example (#9202)
Update Connect method example
1 parent c03b82d commit 1677faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/best_practices/scene_organization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ initialize it:
6565
.. code-tab:: csharp
6666

6767
// Parent
68-
GetNode("Child").Connect("SignalName", ObjectWithMethod, "MethodOnTheObject");
68+
GetNode("Child").Connect("SignalName", Callable.From(ObjectWithMethod.MethodOnTheObject));
6969

7070
// Child
7171
EmitSignal("SignalName"); // Triggers parent-defined behavior.

0 commit comments

Comments
 (0)