GodotSharp.SourceGenerators
2.0.0-221203-2249.Release
See the version list below for details.
dotnet add package GodotSharp.SourceGenerators --version 2.0.0-221203-2249.Release
NuGet\Install-Package GodotSharp.SourceGenerators -Version 2.0.0-221203-2249.Release
<PackageReference Include="GodotSharp.SourceGenerators" Version="2.0.0-221203-2249.Release" />
paket add GodotSharp.SourceGenerators --version 2.0.0-221203-2249.Release
#r "nuget: GodotSharp.SourceGenerators, 2.0.0-221203-2249.Release"
// Install GodotSharp.SourceGenerators as a Cake Addin
#addin nuget:?package=GodotSharp.SourceGenerators&version=2.0.0-221203-2249.Release&prerelease
// Install GodotSharp.SourceGenerators as a Cake Tool
#tool nuget:?package=GodotSharp.SourceGenerators&version=2.0.0-221203-2249.Release&prerelease
GodotSharp.SourceGenerators
C# Source Generators for use with the Godot Game Engine (Supports Godot 3 and 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[])
- NEW:
InputMap
class attribute:- Provides strongly typed access to project input actions
- Includes base classes/helpers to create project specific source generators
(See tests for example usage patterns)
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.CSharp (>= 4.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.1.0-230315-1148.Release | 38 | 3/15/2023 |
2.0.0 | 87 | 3/1/2023 |
2.0.0-230219-1656.Release | 46 | 2/19/2023 |
2.0.0-221203-2249.Release | 60 | 12/3/2022 |
2.0.0-221203-2123.Release | 51 | 12/3/2022 |
2.0.0-221203-1959.Release | 51 | 12/3/2022 |
2.0.0-221112-2249.Release | 59 | 11/12/2022 |
2.0.0-221026-2257.Release | 55 | 10/26/2022 |
1.3.3 | 279 | 10/10/2022 |
1.3.3-221006-0024.Release | 49 | 10/5/2022 |
1.3.2 | 269 | 9/29/2022 |
1.3.2-220912-1711.Release | 66 | 9/12/2022 |
1.3.1 | 320 | 9/8/2022 |
1.3.1-220903-2224.Release | 55 | 9/3/2022 |
1.3.1-220826-1958.Release | 64 | 8/26/2022 |
1.3.0 | 302 | 8/21/2022 |
1.2.1-220815-1436.Release | 68 | 8/15/2022 |
1.2.1-220620-2346.Release | 87 | 6/20/2022 |
1.2.0 | 326 | 6/6/2022 |
1.1.4 | 345 | 4/14/2021 |
1.1.3 | 258 | 4/11/2021 |
1.1.2 | 256 | 3/31/2021 |
1.1.1 | 286 | 2/1/2021 |
1.1.0 | 277 | 1/30/2021 |
1.0.0 | 282 | 1/27/2021 |
v.2.0.0 (pre-release)
- 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)