using UnityEngine;
using System.Collections;
using UnityEditor;
using UnityEngine.UI;
namespace UnityEditor.UI {
///
/// This class adds a Menu Item "GameObject/UI/Procedural Image"
/// Bahviour of this command is the same as with regular Images
///
public class ProceduralImageEditorUtility {
[MenuItem("GameObject/UI/Procedural Image")]
public static void AddProceduralImage(){
GameObject o = new GameObject ();
o.AddComponent ();
o.name = "Procedural Image";
if (Selection.activeGameObject != null && Selection.activeGameObject.GetComponentInParent