GodotLayersSourceGenerator 1.1.1

dotnet add package GodotLayersSourceGenerator --version 1.1.1
NuGet\Install-Package GodotLayersSourceGenerator -Version 1.1.1
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="GodotLayersSourceGenerator" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GodotLayersSourceGenerator --version 1.1.1
#r "nuget: GodotLayersSourceGenerator, 1.1.1"
#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.
// Install GodotLayersSourceGenerator as a Cake Addin
#addin nuget:?package=GodotLayersSourceGenerator&version=1.1.1

// Install GodotLayersSourceGenerator as a Cake Tool
#tool nuget:?package=GodotLayersSourceGenerator&version=1.1.1

GodotLayersSourceGenerator

Source generator that will emit Godot layer names as constant values for use in masks using a Source Generator.

image

Will generate code so you can grab these layers statically and typed using C# code.

using Godot;

var myMask1 = LayerNames.Render2D.ImLayer1Mask;
var myMask2 = LayerNames.Render2D.ImLayer2Mask;

Installation

  1. Grab the Source Generator from nuget.
  2. Add the project.godot as an additional file to your .csproj project file. Like this snippet:
<ItemGroup>
  <AdditionalFiles Include="project.godot" />
</ItemGroup>
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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
1.1.1 133 2/11/2024
1.1.0 123 2/11/2024
1.0.1 230 10/15/2023
1.0.0 105 10/15/2023