Skip to content

Instantly share code, notes, and snippets.

View derkork's full-sized avatar

Jan Thomä derkork

  • Leipzig, Germany
View GitHub Profile
using JetBrains.Annotations;
namespace YoHDot.Addons.CustomScripts
{
using System;
using System.Runtime.CompilerServices;
/// <summary>
/// Marks the script as used (because Rider cannot see usages in TSCN files).
/// If <see cref="Icon"/> is given or <see cref="RegisterAsNode"/> is set to true,
@derkork
derkork / CustomScript.cs
Last active September 1, 2022 13:36
Godot C# Registering custom node types with an editor plugin
using YoHDot.Utilities;
namespace YoHDot.Addons.CustomScripts
{
using System.Runtime.CompilerServices;
using System;
using Godot;
// This is mostly a workaround for https://github.com/godotengine/godot/issues/38191