×
×
Description
Changelog
Reviews (0)
UnityCS is a Godot 4 plugin that lets you write game scripts in C# with a Unity-style API. It converts them to GDScript, which Godot runs natively, so you don't need .NET.
What it does
- Adds a "C# Unity" editor tab with syntax highlighting, autocomplete, snippets, and a live syntax checker.
- Converts each
.csfile to a.gdfile with the same name, on save, on file change, and on Play. - If your C# has a syntax error, it keeps the last working
.gdinstead of breaking the game. - Adds a "UnityCS" section in the Inspector to attach a
.csscript to a node. - Maps common Unity code to Godot: lifecycle methods (
Start,Update,FixedUpdate),transform,Input,Mathf,Instantiate/Destroy, coroutines (yield return),PlayerPrefs, scene loading, and trigger/collision callbacks. - Includes touch input support.
How to use it
- Copy
addons/unity_cs_gdinto your Godot 4 project'saddons/folder. - Enable it in Project Settings > Plugins.
- Write
.csscripts outsideaddons/. - Attach the script to a node in the Inspector, then press Play.
Limits
- It supports a subset of Unity's API, not all of it.
- The syntax check is basic. Type errors show up at runtime.
- Warnings appear for unsupported features, such as
OnTriggerStayandOnMouseDown. - Don't edit the generated
.gdfiles, because the next conversion overwrites them.
Changelog for version v1.0.8
2026-11-11 22:17:00
No changelog provided for this version.