Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Godot Csharp?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tipoli5890-godot-csharp)
---
name: godot-csharp
description: >-
C# in Godot with the .NET build: solution setup, C# node scripts, signals and exported
properties, calls between C# and GDScript.
---
# godot-csharp — C# projects, as guidance
The standard Godot build runs no C#; everything here is guidance for a project on the .NET build, and this plugin has no C# check.
It needs the **.NET build of the editor** and the .NET SDK; this plugin's checks run the
standard build, which cannot load a `.cs` file at all, so this skill ships no checker and its
template is a starting point, not a checked file. The C# member spellings follow the engine's
PascalCase bindings; the compiler of your .NET build is the check for them.
## Load what the situation needs
| The situation | Read |
|---|---|
| Which build; the `.csproj` and `.sln`; building from the command line; checking a C# project headless | `reference/setup.md` |
| Writing a C# node script; signals, exports, `_PhysicsProcess(double)`; calling GDScript from C# or C# from GDScript | `reference/interop.md` · `templates/Courier.cs` |
| Exporting a C# game; web, mobile and CI | `reference/platform-limits.md` |
| GDScript instead (typed, checked headless by this plugin) | `godot-gdscript` |
| Export presets and templates in general | `godot-export` |
| Old API names from an earlier engine | `godot-version-guard` |
## What the standard build does
These are the only C# facts this plugin checks, and they matter to any mixed team:
| Action on the standard build | Result |
|---|---|
| load a scene whose node uses `Courier.cs` | `ERROR: No loader found for resource: res://Courier.cs (expected type: Script)`, then the scene loads **with no script on the node**; exit 0 |
| `OS.has_feature("dotnet")` | false |
| `--build-solutions` (listed by `--help`: "Build the scripting solutions") | runs the project scan, exits 0, builds nothing, prints no error |
So a headless gate on a C# project fails on `No loader found for resource: ... .cs`, and an exit
0 from `--build-solutions` is not a build.
## Choosing C#
| Choose C# when | Stay with GDScript when |
|---|---|
| the team writes C# and wants its tooling, libraries and refactoring | the game must ship to the web, or the platform list is not settled (`reference/platform-limits.md`) |
| heavy pure computation (pathfinding over large grids, simulation) is measured as the bottleneck (`godot-profiling`) | the project is checked headless by this plugin's tools, which load GDScript only |
| there is a .NET CI and a .NET build on every machine that opens the project | anyone opens the project in the standard build: their C# nodes lose their scripts silently |
Mixing both is supported by the engine: keep the crossing points few (`reference/interop.md`).
## The C# script in one screen
```csharp
using Godot;
public partial class Courier : CharacterBody2D // file Courier.cs, class partial
{
[Signal]
public delegate void ParcelDeliveredEventHandler(StringName parcelId, int reward);
[Export] public float RunSpeed { get; set; } = 220.0f;
public override void _PhysicsProcess(double delta)
{
Vector2 velocity = Velocity;
velocity.X = Input.GetAxis("ui_left", "ui_right") * RunSpeed;
Velocity = velocity;
MoveAndSlide();
}
public void Deliver(StringName parcelId, int reward)
{
EmitSignal(SignalName.ParcelDelivered, parcelId, reward);
}
}
```
- The file name matches the class, and the class is `partial`.
- A signal is a `[Signal]` delegate whose name ends in EventHandler; the signal's name drops the suffix,
and GDScript connects to that name.
- `delta` is a `double`; engine vectors take `float`, so cast.
- From GDScript, a C# node is reached by name (`courier.call("Deliver", &"express", 40)`), which
the strict GDScript profile accepts; from C#, a GDScript node through `Call(...)`, `Get(...)` and
`Connect(...)` with its snake_case names.
## Discipline
- **Build first, then believe.** Every edit to a `.cs` file, and `templates/Courier.cs` itself,
is unproven until `dotnet build` passes on the .NET build and one scene using it runs; the engine reports C# compile errors as `error CS` lines, not as
`SCRIPT ERROR:`.
- **Pin the build in the project's notes.** Which build and which .NET SDK, so nobody opens it in
the standard build by accident.
- **Free with the engine, test with `IsInstanceValid(node)`.** A freed node is still a non-null C#
reference.
- **Name the bridges.** Calls by string between the languages fail only at run time; keep them
in one bridge per system and test the path that crosses.
- **Versions live in `VERSIONS.md`.** The SDK and package versions are not written into prose or
copied from an old project.
## Scope — what this skill does NOT do
| Not here | Go to |
|---|---|
| GDScript, warnings as errors, signals in GDScript | `godot-gdscript` |
| Export presets, templates, CI exports | `godot-export` |
| Renamed APIs from an earlier engine | `godot-version-guard` |
| Headless verification of a project (GDScript and scenes) | `godot-verify` |