Godot Version
4.2.1
Question
How do I call a C# method from gdscript?
My gdscript code looks something like this:
func _ready():
var thingy = $CsharpUnderlingNode.yummy(2)
C# code:
static string yummy(number){
return number + 15;
}
But I’m getting this error:
Invalid call. nonexistent function ‘yummy’ in base ‘Node2D yummything.cs’.
This is not my actual code but it works the same functionally.
I have no idea how to fix it.
If you can help please let me know.