From 7bf79b16a4fdde19263fb8604c78ec527ebb8636 Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Sat, 22 Jul 2023 22:22:29 +0200 Subject: [PATCH] Merge pull request #7505 from raulsntos/dotnet/remove-funcref --- tutorials/best_practices/scene_organization.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/best_practices/scene_organization.rst b/tutorials/best_practices/scene_organization.rst index 5cf5d367d..67a42787b 100644 --- a/tutorials/best_practices/scene_organization.rst +++ b/tutorials/best_practices/scene_organization.rst @@ -106,10 +106,10 @@ initialize it: .. code-tab:: csharp // Parent - GetNode("Child").Set("FuncProperty", GD.FuncRef(ObjectWithMethod, "MethodOnTheObject")); + GetNode("Child").Set("FuncProperty", Callable.From(ObjectWithMethod.MethodOnTheObject)); // Child - FuncProperty.CallFunc(); // Call parent-defined method (can come from anywhere). + FuncProperty.Call(); // Call parent-defined method (can come from anywhere). 4. Initialize a Node or other Object reference.