namespace Zinnia.Data.Attribute
{
using UnityEditor;
using UnityEngine;
///
/// Displays a custom inspector text attribute in the Unity inspector.
///
[CustomPropertyDrawer(typeof(CustomInspectorTextAttribute))]
public class CustomInspectorTextAttributeDrawer : PropertyDrawer
{
///
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
EditorGUI.PropertyField(position, property, new GUIContent(((CustomInspectorTextAttribute)attribute).customText));
}
}
}