Godot 4 C# Tutorial #7 : How did Vidya figure out Godot C# stuff so fast?

Alright, let’s do a little situation exercise. You’ve come from a background using Unity for the last five years or more. Imagine that you have been tasked to provide information and tutorials for your co-workers about how to use Godot and C# as the scripting language.

So, you set off on your way looking up tutorials but the majority of them are written in GDscript. When trying to write an equivalent script in C# you keep on having difficulty accessing some of the methods that are just given in GDscript, for example changing the audio volume using a float from 0 to 1 in GDScript is linear_to_db but C# is Mathf.LinearToDb? What’s up with that?

In this tutorial I reveal my secrets about how I am so quickly learning Godot and doing it in C#. It may feel like C# has forsaken you until you realize one thing. Vidya’s secret! You need to Read The Manual!

Particularly, I found it very helpful to read through the following documents:

Cross Language Scripting: https://docs.godotengine.org/en/stable/tutorials/scripting/cross_language_scripting.html

C# API differences to GDScript: https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_differences.html

Scroll to Top