![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | DUDE |
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#.
_
_
_
_
_
Code example:
private Spatial fpscamerapivot; private Spatial thirdcamerapivot; private bool fps_mode = true;
public override void _Ready() { fpscamerapivot = GetNode("FPSCameraPivot"); thirdcamerapivot = GetNode("ThirdCameraPivot"); ``` } ```
public override void _Input(InputEvent inputEvent) { if (inputEvent is InputEventMouseMotion eventMouseMotion ) { if (fps_mode == true) { // import event to use it eventMouseMotion = inputEvent as InputEventMouseMotion; ``` fpscamerapivot.MakeCurrent(); } ```