1.8.3: Added HideLabel attribute

This commit is contained in:
Anders Ejlersen 2023-11-04 17:47:58 +01:00
parent 61c7356b3a
commit 3259b62387
12 changed files with 97 additions and 8 deletions

View file

@ -0,0 +1,14 @@
using UnityEditor;
using UnityEngine;
namespace Module.Inspector.Editor
{
[CustomPropertyDrawer(typeof(HideLabelAttribute))]
internal sealed class HideLabelAttributeDrawer : PredrawerModifierPropertyDrawer
{
public override void Modify(PredrawerModifierPropertyAttribute attribute, SerializedProperty property, GUIContent label)
{
label.text = string.Empty;
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: df07b497331149cfb8ce6e544247cb9f
timeCreated: 1699115325