changed directory structure

This commit is contained in:
Sebastian Bularca
2026-04-02 07:22:33 +02:00
parent 101a7ae81a
commit 81b8eadaf1
323 changed files with 5 additions and 5 deletions

View File

@@ -0,0 +1,34 @@
using UnityEngine;
namespace Jovian.InspectorTools
{
/// <summary>
/// Field will be Read-Only in Playmode
/// </summary>
public class InitializationFieldAttribute : PropertyAttribute
{
}
}
#if UNITY_EDITOR
namespace Jovian.InspectorTools.Internal
{
using UnityEditor;
[CustomPropertyDrawer(typeof(InitializationFieldAttribute))]
public class InitializationFieldAttributeDrawer : PropertyDrawer
{
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
{
return EditorGUI.GetPropertyHeight(property, label, true);
}
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
if (Application.isPlaying) GUI.enabled = false;
EditorGUI.PropertyField(position, property, label, true);
GUI.enabled = true;
}
}
}
#endif