Skip to content

Instantly share code, notes, and snippets.

View flarb's full-sized avatar

Ralph Barbagallo flarb

View GitHub Profile
syntax: glob
Build
Temp
obj
*.suo
*.sln
*.sln.docstates
*.csproj
*.unityproj
*.pidb
@flarb
flarb / PlayScene.cs
Created December 20, 2012 08:50
Lets you save the currently selected Unity3D scene. Then automatically load and run the saved scene via keyboard shortcut. If you break up your Unity3D projects into multiple scenes--including a loading scene--this saves a lot of manual switching of scenes.
using UnityEngine;
using System.Collections;
using UnityEditor;
/*
* Written by Ralph A. Barbagallo III
*
* www.ralphbarbagallo.com
*
* I wrote this becuase I was sick of switching scenes to play my loader scene and test my game.
@flarb
flarb / DiffuseDetailAmbient.shader
Created February 16, 2012 09:42
Mobile Ambient Diffuse Detail shader for Unity3D - just a simple one line change.
Shader "Mobile/Ambient Diffuse Detail" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB)", 2D) = "white" {}
_Detail ("Detail (RGB)", 2D) = "gray" {}
}
SubShader {
Pass{