BorrowedTorch.Editor 1.1.3

Prefix Reserved
dotnet add package BorrowedTorch.Editor --version 1.1.3
                    
NuGet\Install-Package BorrowedTorch.Editor -Version 1.1.3
                    
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="BorrowedTorch.Editor" Version="1.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BorrowedTorch.Editor" Version="1.1.3" />
                    
Directory.Packages.props
<PackageReference Include="BorrowedTorch.Editor" />
                    
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 BorrowedTorch.Editor --version 1.1.3
                    
#r "nuget: BorrowedTorch.Editor, 1.1.3"
                    
#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.
#:package BorrowedTorch.Editor@1.1.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BorrowedTorch.Editor&version=1.1.3
                    
Install as a Cake Addin
#tool nuget:?package=BorrowedTorch.Editor&version=1.1.3
                    
Install as a Cake Tool

BorrowedTorch.Editor

The editor SDK of Kindling, Borrowed Torch's game engine: what a game's editor code builds against. Its features add to the Kindling editor - views of the game's components in the inspector, panels, tools, menu commands and switches, kinds of surface-graph node - and its editor halves add to the engine inside the editor: viewport modes, overlays, values carried with the inspector's snapshots. The editor's own features register through the same SDK.

A game's editor code is a class library of its own beside the game's code, Code\Editor\<Game>.Editor.csproj. The editor loads it with each build of the game and lets go of it with that build; the player never loads it.

using System.Windows.Media;
using BorrowedTorch.Editor.Features;
using BorrowedTorch.Editor.Inspectors;

public sealed class MyGameEditorFeature : IEditorFeature
{
    public string EngineFeatureId => MyGameFeature.FeatureId;

    public void Register(EditorFeatureBuilder builder)
    {
        builder.Inspectors.Add<SpinComponent, SpinView>(new ComponentDisplay("Spin", "🌀", Brushes.Orange),
            editor => new SpinView(editor),
            (view, spin, snapshot) => view.Show(spin, snapshot));

        builder.Panels.Add("Spinners", editor => new SpinnersPanel(editor));
        builder.Menus.Command("Game/Stop all spinners", editor => { /* ... */ });
        builder.SurfaceNodes.Add(SpinUvNode.Definition);
    }
}

Reference this package and BorrowedTorch.Engine at the version of the editor you run, with ExcludeAssets="runtime": the editor brings both itself, and refuses editor code built against a newer SDK than its own. The editor's File > New project (Game with code) and File > New game code write such a project for you; so does dotnet new kindling-game (BorrowedTorch.Templates).

Product Compatible and additional computed target framework versions.
.NET net10.0-windows10.0.19041 is compatible. 
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

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.3 51 11/21/2026
1.1.1 64 11/17/2026
1.1.0 64 11/17/2026