Browse Source

Update Connect method example (#9202)

Update Connect method example

(cherry picked from commit 1677faab2390af6ca2a979a2b667be992d41a5f5)
dawei-wang 1 year ago
parent
commit
a4aebd8412
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorials/best_practices/scene_organization.rst

+ 1 - 1
tutorials/best_practices/scene_organization.rst

@@ -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.