GodotSharp.SourceGenerators 2.1.0-230315-1148.Release

This is a prerelease version of GodotSharp.SourceGenerators.
There is a newer version of this package available.
See the version list below for details.
dotnet add package GodotSharp.SourceGenerators --version 2.1.0-230315-1148.Release
                    
NuGet\Install-Package GodotSharp.SourceGenerators -Version 2.1.0-230315-1148.Release
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GodotSharp.SourceGenerators" Version="2.1.0-230315-1148.Release" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GodotSharp.SourceGenerators" Version="2.1.0-230315-1148.Release" />
                    
Directory.Packages.props
<PackageReference Include="GodotSharp.SourceGenerators" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GodotSharp.SourceGenerators --version 2.1.0-230315-1148.Release
                    
#r "nuget: GodotSharp.SourceGenerators, 2.1.0-230315-1148.Release"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=GodotSharp.SourceGenerators&version=2.1.0-230315-1148.Release&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=GodotSharp.SourceGenerators&version=2.1.0-230315-1148.Release&prerelease
                    
Install as a Cake Tool

GodotSharp.SourceGenerators

C# Source Generators for use with the Godot Game Engine (supports Godot 4!)

  • SceneTree class attribute:
    • Generates class property for uniquely named nodes
    • Provides strongly typed access to the scene hierarchy (via _ operator)
  • GodotOverride method attribute:
    • Allows use of On*, instead of virtual _* overrides
    • (Requires partial method declaration for use with Godot 4.0)
  • Notify property attribute:
    • Generates boiler plate code, triggering only when values differ
    • (Automagically triggers nested changes for Resource and Resource[])
  • InputMap class attribute:
    • Provides strongly typed access to project input actions
  • NEW: CodeComments class attribute:
    • Provides a nested static class to access property comments from code (useful for in-game tooltips, etc)
  • Includes base classes/helpers to create project specific source generators
  • Version 2.x supports Godot 4.x; Version 1.x supports Godot 3.x

(See GodotSharp.BuildingBlocks or local tests for example usage patterns)

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on GodotSharp.SourceGenerators:

Repository Stars
chickensoft-games/GameDemo
The Chickensoft Game Demo — a fully tested, third-person 3D game built with Godot and C#. Now with saving and loading!
CSharpGodotTools/Template
A template used for quickly setting up new Godot 4 C# games.
Version Downloads Last Updated
2.6.0-250131-2115.Release 365 1/31/2025
2.6.0-250119-1531.Release 51 1/19/2025
2.5.1-241228-1651.Release 99 12/28/2024
2.5.0 2,625 11/24/2024
2.4.1-241118-2013.Release 148 11/18/2024
2.4.1-241107-1157.Release 64 11/7/2024
2.4.1-241102-1224.Release 67 11/2/2024
2.4.1-241017-1218.Release 315 10/17/2024
2.4.1-241017-1201.Release 55 10/17/2024
2.4.1-241016-2342.Release 77 10/16/2024
2.4.0 922 7/18/2024
2.4.0-240626-1054.Release 65 6/26/2024
2.4.0-240429-1137.Release 239 4/29/2024
2.3.4 396 4/27/2024
2.3.4-240426-1941.Release 71 4/26/2024
2.3.3 179 4/1/2024
2.3.3-240115-0706.Release 114 1/14/2024
2.3.2 856 1/6/2024
2.3.1 328 12/11/2023
2.3.1-231211-0953.Release 99 12/10/2023
2.3.0 228 11/18/2023
2.2.1 185 10/21/2023
2.1.1 2,608 6/26/2023
2.1.0 189 6/23/2023
2.1.0-230621-1151.Release 99 6/21/2023
2.1.0-230426-1916.Release 119 4/26/2023
2.1.0-230420-1952.Release 109 4/20/2023
2.1.0-230411-1909.Release 112 4/11/2023
2.1.0-230315-1148.Release 108 3/15/2023
2.0.0 333 3/1/2023
2.0.0-230219-1656.Release 114 2/19/2023
2.0.0-221203-2249.Release 134 12/3/2022
2.0.0-221203-2123.Release 117 12/3/2022
2.0.0-221203-1959.Release 122 12/3/2022
2.0.0-221112-2249.Release 131 11/12/2022
2.0.0-221026-2257.Release 132 10/26/2022
1.3.3 579 10/10/2022
1.3.3-221006-0024.Release 113 10/5/2022
1.3.2 446 9/29/2022
1.3.2-220912-1711.Release 135 9/12/2022
1.3.1 511 9/8/2022
1.3.1-220903-2224.Release 122 9/3/2022
1.3.1-220826-1958.Release 134 8/26/2022
1.3.0 503 8/21/2022
1.2.1-220815-1436.Release 138 8/15/2022
1.2.1-220620-2346.Release 168 6/20/2022
1.2.0 550 6/6/2022
1.1.4 543 4/14/2021
1.1.3 427 4/11/2021
1.1.2 429 3/31/2021
1.1.1 448 2/1/2021
1.1.0 470 1/30/2021
1.0.0 499 1/27/2021

v.2.1.0 (pre-release)
     - ADDED: CodeComments attribute

     v.2.0.0
     - ADDED: Support for Godot 4.0
       -- KnownIssue: GodotOverride requires an additional partial method override declaration
     - CHANGED: Notify must be used on property instead of field to access privately generated content
     - ADDED: InputMap attribute

     v.1.3.3
     - ADDED: Support for placeholder scenes
     - ADDED: Support for editable instanced scenes
     - FIXED: GodotOverride in derived class now calls rather than hides base method
     - FIXED: Previously, types could not share the same name. This has now been fixed.
     - ADDED: Notify attribute (with support for [Export])
     - ADDED: Added support for uniquely named nodes (ie, Godot 3.5 - GetNode("%MyUniqueNode"))

     v.1.2.0
     - Replaces ISourceGenerator with IIncrementalGenerator for faster builds
     - Hierarchy of inherited scenes are now fully accessible from base classes
     - Hierarchy of instanced scenes can be made accessible using [SceneTree(traverseInstancedScenes=true)]
     - FIXED: Modifications (overrides) of inheritance hierarchy now supported
     - FIXED: Inheriting/Instancing scenes without scripts now supported
     - FIXED: Consumers with implicit usings enabled now supported

     v.1.1.4
     - Exposed base classes/helpers to help create project specific source generators

     v.1.0.0
     - Initial release (SceneTree/GodotOverride)