This tool is designed to help you convert Unity scripts to Godot scripts, making it easier to migrate your game projects from Unity to Godot. It utilizes the Roslyn library for C# code analysis and transformation.
- .NET SDK (7 or later) for building and running the project.
- A Godot project where you want to import the converted scripts.
-
Clone the repository:
git clone https://github.com/a2937/unity-to-godot-converter.git
-
Navigate to the project folder:
cd unity-to-godot-converter- Build the project:
dotnet build- Either build the build the application or download a binary
- Run the converter (Assuming Windows is being used)
.\UnityToGodotConverterConsole.exeor
.\UnityToGodotConverterConsole.exe <Path to your Unity C# file>-
The converted file will be in the same place as the source file but end in an "_Godot.cs" filename.
-
Manually fix any errors that occurred.
- Converting Unity's
Startmethod to Godot's_Readymethod - Replacing
GetComponentcalls withGetNodecalls - Debug statements
More features will be added as time goes on.
Contributions are welcome! Feel free to open issues, submit pull requests, or provide feedback.
This project is licensed under the MIT License - see the LICENSE file for details.
DerrFunk for this parser