Files
H3VR-TNH-Quality-of-Life-Im…/Assets/MeatKit/Editor/Utils/HideInNormalInspectorDrawer.cs
T

16 lines
434 B
C#

using UnityEngine;
using UnityEditor;
namespace MeatKit
{
[CustomPropertyDrawer(typeof(HideInNormalInspectorAttribute))]
class HideInNormalInspectorDrawer : PropertyDrawer
{
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
{
return 0f;
}
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { }
}
}