Godot Version
Question
Hi there, I don`t understand why I have an error with this signal…
with gdscript works fine:
extends RigidBody3D
func _ready():
connect(“mouse_entered”, OnMouse)
connect(“input_event”, OnEvent)func OnMouse():
passfunc OnEvent(cam:Node, event:InputEvent, position:Vector3, normal:Vector3, shape_idx:int):
pass
but no in csharp, my guess is that the class InputEvent has the same name than the signal??
public partial class Dice3D : RigidBody3D
{public override void _Ready()
{
MouseEntered+=OnMouse; //this works ok
InputEvent+=OnEvent; //this is an error
}public void OnMouse(){
//code
}public void OnEvent(Node cam, InputEvent myEvent, Vector3 position, Vector3 normal, int shape_idx){ //code }
}
Any idea?
Thanks