Skip to content

Instantly share code, notes, and snippets.

View noisecrime's full-sized avatar

NoiseCrime noisecrime

View GitHub Profile
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class EditorWindowExample : EditorWindow
{
List<Node> nodes = new List<Node> ();
@noisecrime
noisecrime / App_ValidateMacAddress
Created June 22, 2014 17:06
Unity - Validate Mac Address
// NoiseCrime Gist
// 2014.06.22
// Unity Version: 3.5.7+
// Class to examine all Mac Addresses on Machine, selects the fastest to use as a validation ID.
// Can specify multiple valid Mac Addresses.
// Can Quit Application if valid Mac not found.
@noisecrime
noisecrime / ExtractSceneNames
Created June 21, 2014 21:26
Unity - Access Scenes added to build menu in Inspector.
// NoiseCrime Gist
// 2014.06.21
// Unity Version: 3.5.7+
// This script provides access to a projects scene names in the Inspector.
// It uses MenuItem to assing commands to the component context menu.
// Docs: http://docs.unity3d.com/ScriptReference/MenuItem.html
@noisecrime
noisecrime / AssignSceneName
Created June 21, 2014 19:51
Unity - Adding commands to component context/cog menu.
// NoiseCrime Gist
// 2014.06.21
// Unity Version: 3.5.7+
// This script demonstrates how you can use MenuItem to append commands to a script component context menu.
// The new commands will be available by right-clicking on a component header or clicking the little cog icon.
// Docs: http://docs.unity3d.com/ScriptReference/MenuItem.html
// Note: You must use the current class name/type in both the MenuItem and where the context is used in the code.