Same as the Title says, I had this problem multiple times and the C# variant is not always just changing the first letter big and remove the underscores.
Is there perhaps a site where i can see all C# variants? The official docs don't seem to have everything.
If possible I would like to know how to do it in C#.
private Spatial fpscamerapivot;
private Spatial thirdcamerapivot;
private bool fps_mode = true;
public override void _Ready()
fpscamerapivot = GetNode<Spatial>("FPSCameraPivot");
thirdcamerapivot = GetNode<Spatial>("ThirdCameraPivot");
public override void Input(InputEvent inputEvent)
if (inputEvent is InputEventMouseMotion eventMouseMotion )
if (fpsmode == true)
// import event to use it
eventMouseMotion = inputEvent as InputEventMouseMotion;