15 lines
389 B
C#
15 lines
389 B
C#
using Golems.Attributes;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace Golems
|
|
{
|
|
[CustomPropertyDrawer(typeof(ReadOnly))]
|
|
public class ReadOnlyPropertyDrawer : PropertyDrawer
|
|
{
|
|
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
|
{
|
|
EditorGUI.LabelField(position, $"{property.displayName}");
|
|
}
|
|
}
|
|
} |