Skip to content

Instantly share code, notes, and snippets.

View glitchersgames's full-sized avatar
💭
Making Drive Buy - Delivery Battles!

Glitchers glitchersgames

💭
Making Drive Buy - Delivery Battles!
View GitHub Profile
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
[InitializeOnLoad]
public class CustomHierarchyView
{
private static GUIContent toggledOnIcon;
private static GUIContent toggledOffIcon;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public static class HighlightObjectUtil
{
[MenuItem("CONTEXT/Object/Ping!")]
static void Ping(MenuCommand command)
{
using System.Collections.Generic;
using UnityEngine.UI;
namespace UnityEngine.EventSystems
{
/// <summary>
/// Simple event system using physics raycasts.
/// </summary>
[AddComponentMenu("Event/Physics Raycaster (Fixed)")]
[RequireComponent(typeof(Camera))]
// Tested only on Windows
// Assumes builds are in the project folder (e.g. your-game/Builds/Build.exe)
using System;
using System.IO;
using System.Diagnostics;
public static class BuildRunning
{
public bool IsBuildRunning()
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Rendering;
namespace Glitchers.UserInterface
{
public class CustomZTestUI : MonoBehaviour, IMaterialModifier
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Glitchers
{
public static class FindInterfaces
{
public static List<T> Find<T>( )
/*
* Instructions for setting up a slackbot:
* https://get.slack.help/hc/en-us/articles/115005265703-Create-a-bot-for-your-workspace
*
* By @hugosslade for @glitchers
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@glitchersgames
glitchersgames / SplineVertexColors.cs
Last active September 3, 2017 11:17
Color a mesh based on progress along a 'spline' (read - series of unconnected transforms). Colors can be adjusted using curves. Do this in edit mode with a VertexColor shader/your custom one to see results live. WARNING: This affects the mesh directly so make sure to save a backup.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SplineVertexColors : MonoBehaviour {
#region Types
public enum Mode
{
ChannelCurves,
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public static class AssetBundleUtil
{
public static void FindAllAssetsInBundle( string assetBundleName )
{
List<Object> assets = new List<Object>();
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class OpenWebsiteOnHeadsetRemove : MonoBehaviour
{
#region Serialized
public OVRManager m_OVRManager;
#endregion