Skip to content

Commit 3e51449

Browse files
committed
C#: Replace FuncRef with Callable in outdated example
1 parent 9939c90 commit 3e51449

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/best_practices/scene_organization.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ initialize it:
106106
.. code-tab:: csharp
107107

108108
// Parent
109-
GetNode("Child").Set("FuncProperty", GD.FuncRef(ObjectWithMethod, "MethodOnTheObject"));
109+
GetNode("Child").Set("FuncProperty", Callable.From(ObjectWithMethod.MethodOnTheObject));
110110

111111
// Child
112-
FuncProperty.CallFunc(); // Call parent-defined method (can come from anywhere).
112+
FuncProperty.Call(); // Call parent-defined method (can come from anywhere).
113113

114114
4. Initialize a Node or other Object reference.
115115

0 commit comments

Comments
 (0)