From a9d35a5447508eba8fa8470bbb61ff7704491de8 Mon Sep 17 00:00:00 2001 From: BitterSmile Date: Sat, 2 Mar 2024 11:47:21 +0100 Subject: [PATCH] Read only attribute - build fix --- .../{ReadOnlyAttribute.cs => ReadOnlyAttributeDrawer.cs} | 6 +----- ...Attribute.cs.meta => ReadOnlyAttributeDrawer.cs.meta} | 0 NEG/Utils.meta | 3 +++ NEG/Utils/ReadOnlyAttribute.cs | 9 +++++++++ NEG/Utils/ReadOnlyAttribute.cs.meta | 3 +++ 5 files changed, 16 insertions(+), 5 deletions(-) rename Editor/{ReadOnlyAttribute.cs => ReadOnlyAttributeDrawer.cs} (86%) rename Editor/{ReadOnlyAttribute.cs.meta => ReadOnlyAttributeDrawer.cs.meta} (100%) create mode 100644 NEG/Utils.meta create mode 100644 NEG/Utils/ReadOnlyAttribute.cs create mode 100644 NEG/Utils/ReadOnlyAttribute.cs.meta diff --git a/Editor/ReadOnlyAttribute.cs b/Editor/ReadOnlyAttributeDrawer.cs similarity index 86% rename from Editor/ReadOnlyAttribute.cs rename to Editor/ReadOnlyAttributeDrawer.cs index 4ce718d..5833ed3 100644 --- a/Editor/ReadOnlyAttribute.cs +++ b/Editor/ReadOnlyAttributeDrawer.cs @@ -1,12 +1,8 @@ using UnityEditor; using UnityEngine; -namespace NegUtils.Editor +namespace NEG.Utils.Editor { - public class ReadOnlyAttribute : PropertyAttribute - { - } - [CustomPropertyDrawer(typeof(ReadOnlyAttribute))] public class ReadOnlyPropertyDrawer : PropertyDrawer { diff --git a/Editor/ReadOnlyAttribute.cs.meta b/Editor/ReadOnlyAttributeDrawer.cs.meta similarity index 100% rename from Editor/ReadOnlyAttribute.cs.meta rename to Editor/ReadOnlyAttributeDrawer.cs.meta diff --git a/NEG/Utils.meta b/NEG/Utils.meta new file mode 100644 index 0000000..29cbd4b --- /dev/null +++ b/NEG/Utils.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: d0004992787c4a7ea519cf20f089657c +timeCreated: 1709376205 \ No newline at end of file diff --git a/NEG/Utils/ReadOnlyAttribute.cs b/NEG/Utils/ReadOnlyAttribute.cs new file mode 100644 index 0000000..3f5409c --- /dev/null +++ b/NEG/Utils/ReadOnlyAttribute.cs @@ -0,0 +1,9 @@ +using UnityEngine; + +namespace NEG.Utils +{ + public class ReadOnlyAttribute : PropertyAttribute + { + } + +} \ No newline at end of file diff --git a/NEG/Utils/ReadOnlyAttribute.cs.meta b/NEG/Utils/ReadOnlyAttribute.cs.meta new file mode 100644 index 0000000..34e6887 --- /dev/null +++ b/NEG/Utils/ReadOnlyAttribute.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 8d9e0fab2ff2444cab62737cf994d519 +timeCreated: 1709376222 \ No newline at end of file