First commit

This commit is contained in:
Alexander Filippov
2021-06-27 14:46:18 +02:00
parent dcd4fbca11
commit fe555652c3
32 changed files with 794 additions and 0 deletions

View File

@ -0,0 +1,16 @@
using UnityEditor;
using UnityEngine;
namespace Agoxandr.Utils
{
[CustomPropertyDrawer(typeof(ReadOnlyFieldAttribute))]
public class ReadOnlyFieldDrawer : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
GUI.enabled = false;
EditorGUI.PropertyField(position, property, label, true);
GUI.enabled = true;
}
}
}