initial upload

This commit is contained in:
tom.hempel
2025-09-21 22:42:26 +02:00
commit d03bcd4ba5
6231 changed files with 351582 additions and 0 deletions

View File

@ -0,0 +1,17 @@
using Convai.Scripts.Runtime.Attributes;
using UnityEditor;
using UnityEngine;
namespace Convai.Scripts.Editor.UI
{
[CustomPropertyDrawer(typeof(ReadOnlyAttribute))]
public class ReadOnlyDrawer : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
GUI.enabled = false; // Disable the property field
EditorGUI.PropertyField(position, property, label, true);
GUI.enabled = true; // Re-enable the property field
}
}
}