Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
Update README.md and LICENSE
Browse files Browse the repository at this point in the history
  • Loading branch information
uurha committed Nov 29, 2022
1 parent 6fb5564 commit 6238b60
Show file tree
Hide file tree
Showing 140 changed files with 372 additions and 307 deletions.
2 changes: 1 addition & 1 deletion Editor/BetterAttributes.Editor.asmdef
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "BetterAttributes.Editor",
"rootNamespace": "",
"rootNamespace": "Better.Attributes",
"references": [
"GUID:35101f455c979e94c9a0a4793484b7fd",
"GUID:28da8d3b12e3efa47928e0c9070f853d",
Expand Down
6 changes: 3 additions & 3 deletions Editor/EditorAddons/BetterAttributesEditor.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using BetterAttributes.Runtime;
using BetterExtensions.Runtime.Extension;
using Better.Attributes.Runtime;
using Better.Extensions.Runtime;
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons
namespace Better.Attributes.EditorAddons
{
[CanEditMultipleObjects]
[CustomEditor(typeof(Object), true)]
Expand Down
5 changes: 2 additions & 3 deletions Editor/EditorAddons/Drawers/Base/FieldDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using System;
using UnityEditor;
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Base
namespace Better.Attributes.EditorAddons.Drawers.Base
{
public abstract class FieldDrawer : PropertyDrawer
{
Expand Down
4 changes: 2 additions & 2 deletions Editor/EditorAddons/Drawers/Base/MultiFieldDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using BetterAttributes.EditorAddons.Drawers.Utilities;
using Better.Attributes.EditorAddons.Drawers.Utilities;
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Base
namespace Better.Attributes.EditorAddons.Drawers.Base
{
public abstract class MultiFieldDrawer<T> : FieldDrawer where T : UtilityWrapper
{
Expand Down
6 changes: 3 additions & 3 deletions Editor/EditorAddons/Drawers/Base/WrapperCollection.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Collections.Generic;
using BetterAttributes.EditorAddons.Drawers.Comparers;
using BetterAttributes.EditorAddons.Drawers.Utilities;
using Better.Attributes.EditorAddons.Drawers.Comparers;
using Better.Attributes.EditorAddons.Drawers.Utilities;
using UnityEditor;

namespace BetterAttributes.EditorAddons.Drawers.Base
namespace Better.Attributes.EditorAddons.Drawers.Base
{
public class WrapperCollection<T> : Dictionary<SerializedProperty, WrapperCollectionValue<T>>
where T : UtilityWrapper
Expand Down
4 changes: 2 additions & 2 deletions Editor/EditorAddons/Drawers/Base/WrapperCollectionValue.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using BetterAttributes.EditorAddons.Drawers.Utilities;
using Better.Attributes.EditorAddons.Drawers.Utilities;

namespace BetterAttributes.EditorAddons.Drawers.Base
namespace Better.Attributes.EditorAddons.Drawers.Base
{
public class WrapperCollectionValue<T> where T : UtilityWrapper
{
Expand Down
2 changes: 1 addition & 1 deletion Editor/EditorAddons/Drawers/Base/WrappersTypeCollection.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;

namespace BetterAttributes.EditorAddons.Drawers.Base
namespace Better.Attributes.EditorAddons.Drawers.Base
{
public class WrappersTypeCollection : Dictionary<Type, Dictionary<Type, Type>>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;

namespace BetterAttributes.EditorAddons.Drawers.Comparers
namespace Better.Attributes.EditorAddons.Drawers.Comparers
{
public class AssignableFromComparer : BaseComparer<AssignableFromComparer, Type>, IEqualityComparer<Type>
{
Expand Down
2 changes: 1 addition & 1 deletion Editor/EditorAddons/Drawers/Comparers/BaseComparer.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace BetterAttributes.EditorAddons.Drawers.Comparers
namespace Better.Attributes.EditorAddons.Drawers.Comparers
{
public abstract class BaseComparer<T, U> where T : IEqualityComparer<U>, new()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using UnityEditor;

namespace BetterAttributes.EditorAddons.Drawers.Comparers
namespace Better.Attributes.EditorAddons.Drawers.Comparers
{
public class SerializedPropertyComparer : BaseComparer<SerializedPropertyComparer, SerializedProperty>,
IEqualityComparer<SerializedProperty>
Expand Down
2 changes: 1 addition & 1 deletion Editor/EditorAddons/Drawers/Comparers/TypeComparer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;

namespace BetterAttributes.EditorAddons.Drawers.Comparers
namespace Better.Attributes.EditorAddons.Drawers.Comparers
{
public class TypeComparer : BaseComparer<TypeComparer, Type>, IEqualityComparer<Type>
{
Expand Down
5 changes: 2 additions & 3 deletions Editor/EditorAddons/Drawers/Decorators/IconHeaderDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using System.IO;
using BetterAttributes.Runtime.Attributes.Headers;
using Better.Attributes.Runtime.Headers;
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Decorators
namespace Better.Attributes.EditorAddons.Drawers.Decorators
{
[CustomPropertyDrawer(typeof(IconHeaderAttribute))]
internal sealed class IconHeaderDrawer : DecoratorDrawer
Expand Down
4 changes: 2 additions & 2 deletions Editor/EditorAddons/Drawers/Decorators/PrefabHeaderDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using BetterAttributes.Runtime.Attributes.Headers;
using Better.Attributes.Runtime.Headers;
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Decorators
namespace Better.Attributes.EditorAddons.Drawers.Decorators
{
[CustomPropertyDrawer(typeof(PrefabHeaderAttribute))]
internal sealed class PrefabHeaderDrawer : DecoratorDrawer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using BetterAttributes.Runtime.Attributes.Headers;
using Better.Attributes.Runtime.Headers;
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Decorators
namespace Better.Attributes.EditorAddons.Drawers.Decorators
{
[CustomPropertyDrawer(typeof(ReferencesHeaderAttribute))]
internal sealed class ReferencesHeaderDrawer : DecoratorDrawer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using BetterAttributes.Runtime.Attributes.Headers;
using Better.Attributes.Runtime.Headers;
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Decorators
namespace Better.Attributes.EditorAddons.Drawers.Decorators
{
[CustomPropertyDrawer(typeof(SettingsHeaderAttribute))]
internal sealed class SettingsHeaderDrawer : DecoratorDrawer
Expand Down
4 changes: 2 additions & 2 deletions Editor/EditorAddons/Drawers/Decorators/StateHeaderDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using BetterAttributes.Runtime.Attributes.Headers;
using Better.Attributes.Runtime.Headers;
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Decorators
namespace Better.Attributes.EditorAddons.Drawers.Decorators
{
[CustomPropertyDrawer(typeof(StateHeaderAttribute))]
internal sealed class StateHeaderDrawer : DecoratorDrawer
Expand Down
12 changes: 6 additions & 6 deletions Editor/EditorAddons/Drawers/DrawInspector/DrawInspectorDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using System;
using BetterAttributes.EditorAddons.Drawers.Base;
using BetterAttributes.EditorAddons.Drawers.Utilities;
using BetterAttributes.EditorAddons.Drawers.WrapperCollections;
using BetterAttributes.EditorAddons.Helpers;
using BetterAttributes.Runtime.Attributes.DrawInspector;
using Better.Attributes.EditorAddons.Drawers.Base;
using Better.Attributes.EditorAddons.Drawers.Utilities;
using Better.Attributes.EditorAddons.Drawers.WrapperCollections;
using Better.Attributes.EditorAddons.Helpers;
using Better.Attributes.Runtime.DrawInspector;
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.DrawInspector
namespace Better.Attributes.EditorAddons.Drawers.DrawInspector
{
[CustomPropertyDrawer(typeof(DrawInspectorAttribute))]
public class DrawInspectorDrawer : MultiFieldDrawer<DrawInspectorWrapper>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using System;
using BetterAttributes.EditorAddons.Drawers.Utilities;
using Better.Attributes.EditorAddons.Drawers.Utilities;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;

namespace BetterAttributes.EditorAddons.Drawers.DrawInspector
namespace Better.Attributes.EditorAddons.Drawers.DrawInspector
{
[Serializable]
public class DrawInspectorWrapper : UtilityWrapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Gizmo
namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
public abstract class BoundsBaseWrapper : GizmoWrapper
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
using BetterAttributes.EditorAddons.Drawers.Utilities;
using Better.Attributes.EditorAddons.Drawers.Utilities;
using UnityEditor;
using UnityEngine;
#if UNITY_2022_1_OR_NEWER
using GizmoUtility = BetterAttributes.EditorAddons.Drawers.Utilities.GizmoUtility;
using GizmoUtility = Better.Attributes.EditorAddons.Drawers.Utilities.GizmoUtility;
#endif

namespace BetterAttributes.EditorAddons.Drawers.Gizmo
namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
public abstract class GizmoWrapper : UtilityWrapper
{
Expand Down
15 changes: 7 additions & 8 deletions Editor/EditorAddons/Drawers/Gizmo/GizmoDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
using BetterAttributes.EditorAddons.Drawers.Base;
using BetterAttributes.EditorAddons.Drawers.Utilities;
using BetterAttributes.EditorAddons.Drawers.WrapperCollections;
using BetterAttributes.EditorAddons.Helpers;
using BetterAttributes.Runtime.Attributes.Gizmo;
using BetterExtensions.EditorAddons;
using Better.Attributes.EditorAddons.Drawers.Base;
using Better.Attributes.EditorAddons.Drawers.WrapperCollections;
using Better.Attributes.EditorAddons.Helpers;
using Better.Attributes.Runtime.Gizmo;
using Better.Extensions.EditorAddons;
using UnityEditor;
using UnityEngine;
#if UNITY_2022_1_OR_NEWER
using GizmoUtility = BetterAttributes.EditorAddons.Drawers.Utilities.GizmoUtility;
using GizmoUtility = Better.Attributes.EditorAddons.Drawers.Utilities.GizmoUtility;
#endif

namespace BetterAttributes.EditorAddons.Drawers.Gizmo
namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
[CustomPropertyDrawer(typeof(GizmoAttribute))]
[CustomPropertyDrawer(typeof(GizmoLocalAttribute))]
Expand Down
7 changes: 3 additions & 4 deletions Editor/EditorAddons/Drawers/Gizmo/HideTransformDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
using BetterAttributes.EditorAddons.Drawers.Utilities;
using BetterExtensions.EditorAddons;
using Better.Extensions.EditorAddons;
using UnityEditor;
using UnityEngine;
#if UNITY_2022_1_OR_NEWER
using GizmoUtility = BetterAttributes.EditorAddons.Drawers.Utilities.GizmoUtility;
using GizmoUtility = Better.Attributes.EditorAddons.Drawers.Utilities.GizmoUtility;
#endif

namespace BetterAttributes.EditorAddons.Drawers.Gizmo
namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
public class HideTransformButtonUtility
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using BetterAttributes.EditorAddons.Helpers;
using BetterExtensions.EditorAddons;
using Better.Extensions.EditorAddons;
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Gizmo
namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
public class BoundsLocalWrapper : BoundsBaseWrapper
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using System;
using BetterAttributes.EditorAddons.Helpers;
using BetterExtensions.EditorAddons;
using Better.Extensions.EditorAddons;
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Gizmo
namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
public class QuaternionLocalWrapper : GizmoWrapper
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using System;
using BetterAttributes.EditorAddons.Helpers;
using BetterExtensions.EditorAddons;
using Better.Extensions.EditorAddons;
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Gizmo
namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
public class Vector2LocalWrapper : GizmoWrapper
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using System;
using BetterAttributes.EditorAddons.Helpers;
using BetterExtensions.EditorAddons;
using Better.Extensions.EditorAddons;
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Gizmo
namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
public class Vector3LocalWrapper : GizmoWrapper
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEditor;

namespace BetterAttributes.EditorAddons.Drawers.Gizmo
namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
public class BoundsWrapper : BoundsBaseWrapper
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Gizmo
namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
public class QuaternionWrapper : GizmoWrapper
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Gizmo
namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
public class Vector2Wrapper : GizmoWrapper
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Gizmo
namespace Better.Attributes.EditorAddons.Drawers.Gizmo
{
public class Vector3Wrapper : GizmoWrapper
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using BetterAttributes.EditorAddons.Drawers.Utilities;
using BetterAttributes.EditorAddons.Helpers;
using Better.Attributes.EditorAddons.Drawers.Utilities;
using Better.Attributes.EditorAddons.Helpers;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;

namespace BetterAttributes.EditorAddons.Drawers.Preview
namespace Better.Attributes.EditorAddons.Drawers.Preview
{
public abstract class BasePreviewWrapper : UtilityWrapper
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System.Threading;
using System.Threading.Tasks;
using BetterAttributes.EditorAddons.Helpers;
using Better.Attributes.EditorAddons.Helpers;
using UnityEditor;
using UnityEngine;

namespace BetterAttributes.EditorAddons.Drawers.Preview
namespace Better.Attributes.EditorAddons.Drawers.Preview
{
public abstract class PreviewWrapper : BasePreviewWrapper
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using BetterAttributes.EditorAddons.Helpers;
using BetterExtensions.Runtime.Extension;
using Better.Attributes.EditorAddons.Helpers;
using Better.Extensions.Runtime;
using UnityEditor;
using UnityEngine;
using UnityEngine.SceneManagement;

namespace BetterAttributes.EditorAddons.Drawers.Preview
namespace Better.Attributes.EditorAddons.Drawers.Preview
{
public class AssetWrapper : PreviewWrapper
{
Expand Down
Loading

0 comments on commit 6238b60

Please sign in to comment.