Skip to content

Instantly share code, notes, and snippets.

@fenglinnet
fenglinnet / ShaderStripper.cs
Created May 11, 2022 03:02 — forked from yasirkula/ShaderStripper.cs
Stripping commonly unused shader variants in Unity's built-in render pipeline
//#define SHADER_COMPILATION_LOGGING
//#define SKIP_SHADER_COMPILATION
using System.Collections.Generic;
using UnityEditor.Build;
using UnityEditor.Rendering;
using UnityEngine;
using UnityEngine.Rendering;
public class ShaderStripper : IPreprocessShaders
@fenglinnet
fenglinnet / MiniJSON.cs
Last active August 29, 2015 14:26 — forked from elaberge/MiniJSON.cs
Updated to work correctly with non-English locales.
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining