csharp/365082218/meteor_original_ios/Assets/ThirdParty/NGUI/Scripts/Editor/UICameraTool.cs

UICameraTool.cs
//----------------------------------------------
//            NGUI: Next-Gen UI kit
// Copyright © 2011-2013 Tasharen Entertainment
//----------------------------------------------

using UnityEditor;
using UnityEngine;
using System.Collections.Generic;

/// 
/// Panel wizard that allows a bird's eye view of all cameras in your scene.
/// 

public clast UICameraTool : EditorWindow
{
	Vector2 mScroll = Vector2.zero;

	/// 
	/// Layer mask field, originally from:
	/// http://answers.unity3d.com/questions/60959/mask-field-in-the-editor.html
	/// 

	public static int LayerMaskField (string label, int mask, params GUILayoutOption[] options)
	{
		List layers = new List();
		List layerNumbers = new List();

		string selectedLayers = "";

		for (int i = 0; i < 32; ++i)
		{
			string layerName = LayerMask.LayerToName(i);

			if (!string.IsNullOrEmpty(layerName))
			{
				if (mask == (mask | (1