From 3e514494b80c8c0e7132f3d74a744971b500083e Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Tue, 13 Jun 2023 11:15:54 +0200 Subject: [PATCH] C#: Replace FuncRef with Callable in outdated example --- 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 5cf5d367dc8..67a42787b71 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.