1.8.3: Added HideLabel attribute
This commit is contained in:
parent
61c7356b3a
commit
3259b62387
12 changed files with 97 additions and 8 deletions
14
Editor/Predrawers/HideLabelAttributeDrawer.cs
Normal file
14
Editor/Predrawers/HideLabelAttributeDrawer.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Editor/Predrawers/HideLabelAttributeDrawer.cs.meta
Normal file
3
Editor/Predrawers/HideLabelAttributeDrawer.cs.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: df07b497331149cfb8ce6e544247cb9f
|
||||
timeCreated: 1699115325
|
||||
Loading…
Add table
Add a link
Reference in a new issue