C# installation
The library targets .NET 10 and GodotSharp 4.7.2. Your application supplies a matching Godot engine. Check compatibility first; the included gallery project is the quickest way to see the library in action.
The package ID and C# namespace are both lowercase tweens.gd. Public NuGet
publication is pending; use either path below now.
Reference the project
Section titled “Reference the project”Clone the repository, then add a project reference from your C# application, adjusting the path to your checkout:
dotnet add path/to/YourGame.csproj reference path/to/tweens.gd/csharp/tweens.gd.csprojThis is how the included gallery project consumes the library. Source lives under
csharp/src/; the root solution is tweens.gd.slnx.
Build a local NuGet package
Section titled “Build a local NuGet package”From the repository root:
dotnet pack csharp/tweens.gd.csproj -c Release -o artifacts/packagesThe current development version produces tweens.gd.0.1.0.nupkg and a symbol
package. In your consuming project’s NuGet.config, add the absolute path to
that output directory alongside nuget.org, which supplies GodotSharp:
<configuration> <packageSources> <clear /> <add key="local-tweens" value="C:/path/to/tweens.gd/artifacts/packages" /> <add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> </packageSources></configuration>Adjust the local path for your machine, then add this item to your application’s
project file and run dotnet restore:
<ItemGroup> <PackageReference Include="tweens.gd" Version="0.1.0" /></ItemGroup>Use a project reference or a package reference, not both.
Run the included gallery
Section titled “Run the included gallery”Open testbed/project.godot in Godot 4.7 with .NET support and press Play.
The project references the library source directly, so Godot builds both.
Continue with the C# quickstart.