Files
2025-05-18 22:39:39 +03:00

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}");
}
}
}