Skip to content

Instantly share code, notes, and snippets.

@zwcloud
zwcloud / TinyTween.cs
Created September 28, 2021 03:09
A single file tween library in C# with support built in for XNA and Unity data types. MIT License.
// TinyTween.cs
//
// Copyright (c) 2013 Nick Gravelyn
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute,
// sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
@zwcloud
zwcloud / CustomAssetInspector.cs
Created July 24, 2021 10:01 — forked from StephenHodgson/CustomAssetInspector.cs
Unity custom inspector window to render markdown language as text asset.
using System;
using System.IO;
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(DefaultAsset))]
public class CustomAssetInspector : Editor
{
public override void OnInspectorGUI()
{
@zwcloud
zwcloud / ImageComparer.cs
Last active October 13, 2018 04:20 — forked from tocsoft/ImageComparer.cs
Compare 2 images using ImageSharp
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Primitives;
using SixLabors.ImageSharp.Processing;
using System;
using Xunit;
namespace ImageSharp.Extension
{
/// <summary>