Skip to content

Instantly share code, notes, and snippets.

View neozero's full-sized avatar

NeoZero neozero

View GitHub Profile
@Kaleidosium
Kaleidosium / fix_github.css
Last active July 2, 2020 20:47
Fix New GitHub Design Issues
/* ==UserStyle==
@name Fix New GitHub Design Issues
@namespace iamrifki
@version 1.0.1
@description Fixes several things I dislike about the new GitHub redesign
@author Dania Rifki <iamrifki0@gmail.com>
==/UserStyle== */
@-moz-document url-prefix("https://github.com/"), url-prefix("https://gist.github.com/") {
/* Add separators back to the file list. */
@cortvi
cortvi / !Collision Matrix.md
Last active August 11, 2023 19:50
Custom editor for Unity to make it easier to edit collision layer interactions.

Just download the script and put it in a "Editor" folder.

@LotteMakesStuff
LotteMakesStuff / TrafficLightAttribute.cs
Last active February 2, 2024 15:58
TrafficLight control/layout/property drawer: Adds a new editor control that draws lil Traffic Lights in the inspector. its really useful for visualizing state. For example, checkboxes can be hard to read at a glace, but a Red or Green status light is easy! Recommend you use the attached package, as it has all the icon image files.
// Non Editor code
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class TrafficLightAttribute : PropertyAttribute
{
public bool DrawLabel = true;
public string CustomLabel;
public bool AlsoDrawDefault;
@ginomessmer
ginomessmer / HierarchyHelper.cs
Last active November 25, 2020 14:50
Neat Unity3D editor script for grouping objects in hierarchy
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
// Neat editor script for grouping objects in hierarchy by /u/SocialOfficer
//
public class HierarchyHelper
{
public static string Suffix = "_Root";
@porglezomp
porglezomp / Extrap.cs
Last active August 31, 2018 01:56
Provides some of Unity's interpolation methods without clamping to [0, 1]
using UnityEngine;
using System.Collections;
public class Extrap {
public static Quaternion Slerp(Quaternion q1, Quaternion q2, float t)
{
float angle;
Vector3 axis;
@keijiro
keijiro / LightProbeRebuilder.cs
Last active February 25, 2020 05:45
Extracts SH coefficients from light probes, and rebuilds light probes from given SH coefficients.
using UnityEngine;
using UnityEditor;
using System.Collections;
public class LightProbeRebuilderWindow : EditorWindow
{
string text = "Paste extracted coefficients here.";
float multiplier = 1.0f;
[MenuItem("Window/Light Probe Rebuilder")]