
﻿using UnityEngine;
using UnityEditor;
using System.Collections;


public class ShowKeywordsMaterialInspector : MaterialEditor
{
	Material targetMat;


	public override void OnEnable()
	{
		targetMat = target as Material;
		base.OnEnable();
	}


	public override void OnInspectorGUI()
	{
		serializedObject.Update();
		if (targetMat.shaderKeywords != null || targetMat.shaderKeywords.Length == 0)
		{
			for (int i = 0; i < targetMat.shaderKeywords.Length; i++)
			{
				GUILayout.Label(targetMat.shaderKeywords[i]);
			}
		}else
		{
			GUILayout.Label("No Keywords");
		}
		base.OnInspectorGUI();
	}

}
