What problem does it solve?
This Skill unit provides a comprehensive guide for integrating C# with Godot Engine, addressing the challenges faced by developers who need to leverage both C# and Godot's powerful game development capabilities.
Core Features & Use Cases
- C# Integration: Detailed instructions on using C# with Godot, including syntax differences and API usage.
- Project Setup: Guidance on setting up C# projects in Godot, including .csproj and solution files.
- IDE Configuration: Steps for configuring JetBrains Rider, Visual Studio Code, and Visual Studio for Godot C# development.
- Partial Classes: Explanation of the
partial class requirement for C# classes inheriting from Godot types.
- Naming Conventions: Best practices for naming methods, properties, signals, and other elements in C# code.
- Signals in C#: Guidance on using signals with C#, including delegates and event handling.
- Async/Await: Usage of
await ToSignal for handling signals asynchronously.
- GDScript Interop: Techniques for calling C# from GDScript and vice versa.
- Performance Tips: Comparison of performance between C# and GDScript, with recommendations for optimal code structure.
- Common Gotchas: List of common pitfalls and how to avoid them.
- Quick Start: A simple instruction to get started with the Skill unit.
Quick Start
Use the csharp-godot skill to learn the basic syntax for creating a C# script in Godot and see how it interacts with the Godot API.