Skip to content

Commit c924ee8

Browse files
authored
Merge pull request godotengine#7505 from raulsntos/dotnet/remove-funcref
2 parents 465c6dd + 3e51449 commit c924ee8

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
@@ -104,10 +104,10 @@ initialize it:
104104
.. code-tab:: csharp
105105

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

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

112112
4. Initialize a Node or other Object reference.
113113

0 commit comments

Comments
 (0)