26 lines
552 B
C#
26 lines
552 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using System.Collections;
|
|
using System;
|
|
using UnityEditor;
|
|
|
|
namespace MoreMountains.Tools
|
|
{
|
|
|
|
[CustomPropertyDrawer(typeof(MMHiddenAttribute))]
|
|
|
|
public class MMHiddenAttributeDrawer : PropertyDrawer
|
|
{
|
|
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
|
|
{
|
|
return 0f;
|
|
}
|
|
|
|
#if UNITY_EDITOR
|
|
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
|
{
|
|
|
|
}
|
|
#endif
|
|
}
|
|
} |