Skip to content

Instantly share code, notes, and snippets.

using System;
using UnityEngine;
using UnityEditor;
public class CreateQuadMesh : Editor {
[MenuItem("Assets/Create/Quad Mesh", false, 10000)]
public static void Create ()
{
Mesh mesh = BuildQuad (1, 1);
//https://gist.github.com/col000r/6658520
//but all the hard work done by mstevenson: https://gist.github.com/mstevenson/4050130
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class ShuffleBag<T> : ICollection<T>, IList<T>
{
private List<T> data = new List<T> ();
<EditorStyle name="MonoDevelop 2.4" _description="Old default MonoDevelop theme">
<Style name="text" color="#000000" bgColor="#FFFFFF" />
<Style name="text.background.readonly" color="#FAFAFA" />
<Style name="linenumber" color="#888A85" bgColor="#FDFDFF" />
<Style name="linenumber.highlight" color="#555753" />
<Style name="iconbar" color="#FDFDFF" />
<Style name="iconbar.separator" color="#BABDB6" />
<Style name="fold" color="#BABDB6" bgColor="#FDFDFF" />
<Style name="fold.highlight" color="#555753" />
<Style name="fold.togglemarker" color="#000000" />
.DS_Store
*.csproj
*.sln
*.pidb
*.userprefs
*.unityproj
/Temp
/Library
using UnityEngine;
using System.Collections;
public class MonoBehaviourSingleton<T> : MonoBehaviour
where T : Component
{
private static T _instance;
public static T Instance {
get {
if (_instance == null) {
/**********************************************/
/*
/* IR_Black Skin by Ben Truyman - 2011
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*