Skip to content

Instantly share code, notes, and snippets.

View ChristopherSchubert's full-sized avatar

Chris Schubert ChristopherSchubert

View GitHub Profile
Shader "Hidden/JumpFloodOutline"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader
{
Tags { "PreviewType" = "Plane" }
Cull Off ZWrite Off ZTest Always
@ChristopherSchubert
ChristopherSchubert / EditorGUIIcons.cs
Last active October 6, 2021 13:09
Example output for the EditorGUIIconGenerator for Unity3D 2021.2.0b4. Utility that generates this can be found here: https://gist.github.com/ChristopherSchubert/9f2427f190e2ea611450e0019d349bbf
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
@ChristopherSchubert
ChristopherSchubert / EditorGUIIconGenerator.cs
Last active March 13, 2023 16:11
This script makes using Unity3D EditorGUI icons simple. It should work in any version of the Editor, because it scans the editor for icons rather than hard-coding them. Drop the script in your project, and then navigate to the menu "Tools > EditorGUI Icons > Explore". The UI will show you the icons, let you regex search them, and if you click th…
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEditor.Experimental;
using UnityEngine;