Skip to content

Instantly share code, notes, and snippets.

@PolyCrusher
PolyCrusher / Processor.cs
Last active March 26, 2026 13:56 — forked from adammyhre/Processor.cs
Generic Processing Chains
using System;
using System.Collections.Generic;
using UnityEngine;
public interface IProcessor<in TIn, out TOut> {
TOut Process(TIn input);
}
public readonly struct Combined<A, B, C> : IProcessor<A, C> {
readonly IProcessor<A, B> first;
@PolyCrusher
PolyCrusher / ExtendedScriptableObjectDrawer.cs
Last active January 29, 2026 10:29 — forked from tomkail/ExtendedScriptableObjectDrawer.cs
[Port to UIElements] Displays the fields of a ScriptableObject in the inspector
// Developed by Tom Kail at Inkle
// Released under the MIT Licence as held at https://opensource.org/licenses/MIT
// Must be placed within a folder named "Editor"
using System;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEditor.UIElements;