Merge pull request #7505 from raulsntos/dotnet/remove-funcref

This commit is contained in:
Max Hilbrunner
2023-07-22 22:22:29 +02:00
committed by Max Hilbrunner
parent bb1e79010a
commit 7bf79b16a4

View File

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