com.wallstop-studios.unity-helpers 2.0.0-rc62 → 2.0.0-rc64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Editor/AnimationCopier.cs +3 -3
- package/Editor/AnimationCreator.cs +2 -2
- package/Editor/AnimationEventEditor.cs +6 -6
- package/Editor/AnimatorControllerCopier.cs +3 -3
- package/Editor/CustomEditors/MatchColliderToSpriteEditor.cs +3 -3
- package/Editor/FitTextureSizeWizard.cs +2 -2
- package/Editor/PrefabCheckWizard.cs +3 -3
- package/Editor/SpriteSettingsApplier.cs +3 -3
- package/Editor/StringInListeDrawer.cs +2 -2
- package/Editor/TextureResizerWizard.cs +4 -5
- package/Editor/TextureSettingsApplier.cs +4 -4
- package/Editor/Utils/DxReadOnlyPropertyDrawer.cs +2 -2
- package/Editor/Utils/EditorUtilities.cs +1 -1
- package/Editor/WShowIfPropertyDrawer.cs +4 -4
- package/Editor/WallstopStudios.UnityHelpers.Editor.asmdef +1 -1
- package/Runtime/Core/Attributes/AnimationEventAttribute.cs +1 -1
- package/Runtime/Core/Attributes/ChildComponentAttribute.cs +2 -1
- package/Runtime/Core/Attributes/DxReadOnlyAttribute.cs +1 -1
- package/Runtime/Core/Attributes/KSerializableAttribute.cs +1 -1
- package/Runtime/Core/Attributes/NotNullAttribute.cs +1 -1
- package/Runtime/Core/Attributes/ParentComponent.cs +1 -1
- package/Runtime/Core/Attributes/RelationalComponentExtensions.cs +1 -1
- package/Runtime/Core/Attributes/SiblingComponentAttribute.cs +1 -1
- package/Runtime/Core/Attributes/ValidateAssignmentAttribute.cs +12 -7
- package/Runtime/Core/Attributes/WShowIfAttribute.cs +1 -1
- package/Runtime/Core/DataStructure/Adapters/FastVector2Int.cs +1 -1
- package/Runtime/Core/DataStructure/Adapters/FastVector3Int.cs +1 -1
- package/Runtime/Core/DataStructure/Adapters/KGuid.cs +1 -1
- package/Runtime/Core/DataStructure/Adapters/KVector2.cs +1 -1
- package/Runtime/Core/DataStructure/Circle.cs +1 -1
- package/Runtime/Core/DataStructure/CyclicBuffer.cs +1 -1
- package/Runtime/Core/DataStructure/ISpatialTree.cs +1 -1
- package/Runtime/Core/DataStructure/KDTree.cs +1 -1
- package/Runtime/Core/DataStructure/QuadTree.cs +1 -1
- package/Runtime/Core/DataStructure/RTree.cs +1 -1
- package/Runtime/Core/DataStructure/StringWrapper.cs +1 -1
- package/Runtime/Core/DataStructure/TimedCache.cs +1 -1
- package/Runtime/Core/Extension/AnimatorExtensions.cs +1 -1
- package/Runtime/Core/Extension/AsyncOperationExtensions.cs +1 -1
- package/Runtime/Core/Extension/CircleExtensions.cs +1 -1
- package/Runtime/Core/Extension/ColorExtensions.cs +1 -1
- package/Runtime/Core/Extension/DictionaryExtensions.cs +1 -1
- package/Runtime/Core/Extension/DirectionExtensions.cs +1 -1
- package/Runtime/Core/Extension/EnumExtensions.cs +1 -1
- package/Runtime/Core/Extension/HashSetExtensions.cs +1 -1
- package/Runtime/Core/Extension/IEnumerableExtensions.cs +1 -1
- package/Runtime/Core/Extension/IListExtensions.cs +1 -1
- package/Runtime/Core/Extension/LoggingExtensions.cs +1 -1
- package/Runtime/Core/Extension/RandomExtensions.cs +1 -1
- package/Runtime/Core/Extension/SerializedPropertyExtensions.cs +2 -2
- package/Runtime/Core/Extension/StringExtensions.cs +1 -1
- package/Runtime/Core/Extension/UnityExtensions.cs +1 -2
- package/Runtime/Core/Helper/ArrayConverter.cs +1 -1
- package/Runtime/Core/Helper/AssignUtilities.cs +1 -1
- package/Runtime/Core/Helper/DirectoryHelper.cs +1 -1
- package/Runtime/Core/Helper/Enumerables.cs +1 -1
- package/Runtime/Core/Helper/FormattingHelpers.cs +1 -1
- package/Runtime/Core/Helper/Geometry.cs +1 -1
- package/Runtime/Core/Helper/Helpers.cs +3 -6
- package/Runtime/Core/Helper/IterationHelpers.cs +1 -1
- package/Runtime/Core/Helper/LifetimeHelpers.cs +2 -1
- package/Runtime/Core/Helper/Logging/UnityLogTagFormatter.cs +29 -1
- package/Runtime/Core/Helper/Objects.cs +1 -1
- package/Runtime/Core/Helper/Partials/LogHelpers.cs +1 -1
- package/Runtime/Core/Helper/Partials/MathHelpers.cs +1 -1
- package/Runtime/Core/Helper/Partials/ObjectHelpers.cs +1 -2
- package/Runtime/Core/Helper/Partials/TransformHelpers.cs +1 -1
- package/Runtime/Core/Helper/ReflectionHelpers.cs +24 -1
- package/Runtime/Core/Helper/SceneHelper.cs +1 -1
- package/Runtime/Core/Helper/SpriteHelpers.cs +1 -1
- package/Runtime/Core/Helper/StringInList.cs +1 -1
- package/Runtime/Core/Helper/UnityMainThreadDispatcher.cs +2 -4
- package/Runtime/Core/Helper/WallMath.cs +1 -1
- package/Runtime/Core/Math/Line.cs +1 -1
- package/Runtime/Core/Math/Parabola.cs +1 -1
- package/Runtime/Core/Math/PointPolygonCheck.cs +1 -1
- package/Runtime/Core/Math/Range.cs +1 -1
- package/Runtime/Core/Math/XXHash.cs +1 -1
- package/Runtime/Core/Model/Direction.cs +1 -1
- package/Runtime/Core/OneOf/FastOneOf.cs +1 -1
- package/Runtime/Core/OneOf/None.cs +1 -1
- package/Runtime/Core/Random/AbstractRandom.cs +1 -1
- package/Runtime/Core/Random/DotNetRandom.cs +1 -1
- package/Runtime/Core/Random/IRandom.cs +1 -1
- package/Runtime/Core/Random/LinearCongruentialGenerator.cs +1 -1
- package/Runtime/Core/Random/NativePcgRandom.cs +1 -1
- package/Runtime/Core/Random/PRNG.cs +1 -1
- package/Runtime/Core/Random/PcgRandom.cs +1 -1
- package/Runtime/Core/Random/PerlinNoise.cs +1 -1
- package/Runtime/Core/Random/RandomState.cs +1 -1
- package/Runtime/Core/Random/RandomUtilities.cs +1 -1
- package/Runtime/Core/Random/RomuDuo.cs +1 -1
- package/Runtime/Core/Random/SplitMix64.cs +1 -1
- package/Runtime/Core/Random/SquirrelRandom.cs +1 -1
- package/Runtime/Core/Random/SystemRandom.cs +1 -1
- package/Runtime/Core/Random/ThreadLocalRandom.cs +1 -1
- package/Runtime/Core/Random/UnityRandom.cs +1 -1
- package/Runtime/Core/Random/WyRandom.cs +1 -1
- package/Runtime/Core/Random/XorShiftRandom.cs +1 -1
- package/Runtime/Core/Random/XorShiroRandom.cs +1 -1
- package/Runtime/Core/Serialization/JsonConverters/ColorConverter.cs +1 -1
- package/Runtime/Core/Serialization/JsonConverters/GameObjectConverter.cs +1 -2
- package/Runtime/Core/Serialization/JsonConverters/Matrix4x4Converter.cs +1 -1
- package/Runtime/Core/Serialization/JsonConverters/TypeConverter.cs +1 -1
- package/Runtime/Core/Serialization/JsonConverters/Vector2Converter.cs +1 -1
- package/Runtime/Core/Serialization/JsonConverters/Vector3Converter.cs +1 -1
- package/Runtime/Core/Serialization/JsonConverters/Vector4Converter.cs +1 -1
- package/Runtime/Core/Serialization/Serializer.cs +1 -1
- package/Runtime/Core/Threading/SingleThreadedThreadPool.cs +1 -1
- package/Runtime/UI/LayeredImage.cs +1 -1
- package/Runtime/Utils/AnimationEventEqualityComparer.cs +1 -1
- package/Runtime/Utils/AnimatorEnumStateMachine.cs +1 -1
- package/Runtime/Utils/Buffers.cs +1 -1
- package/Runtime/Utils/CenterPointOffset.cs +1 -1
- package/Runtime/Utils/CircleLineRenderer.cs +1 -1
- package/Runtime/Utils/CoroutineHandler.cs +1 -1
- package/Runtime/Utils/DeferredDisposalResult.cs +1 -1
- package/Runtime/Utils/MatchColliderToSprite.cs +1 -1
- package/Runtime/Utils/Oscillator.cs +1 -1
- package/Runtime/Utils/RuntimeSingleton.cs +1 -1
- package/Runtime/Utils/SetTextureImportData.cs +1 -1
- package/Runtime/Utils/SpriteRendererMetadata.cs +1 -1
- package/Runtime/Utils/SpriteRendererSyncer.cs +1 -1
- package/Runtime/Utils/StartTracker.cs +1 -1
- package/Runtime/Utils/TextureScale.cs +1 -1
- package/Runtime/Utils/TypeNameSorter.cs +17 -0
- package/Runtime/Utils/TypeNameSorter.cs.meta +3 -0
- package/Runtime/Utils/UnityObjectNameComparer.cs +1 -1
- package/Runtime/WallstopStudios.UnityHelpers.asmdef +1 -1
- package/Tests/Runtime/Attributes/ChildComponentTests.cs +2 -2
- package/Tests/Runtime/Attributes/Components/ExpectChildSpriteRenderers.cs +2 -2
- package/Tests/Runtime/Attributes/Components/ExpectParentSpriteRenderers.cs +2 -2
- package/Tests/Runtime/Attributes/ParentComponentTests.cs +2 -2
- package/Tests/Runtime/Components/RelationalComponentTesterComplex.cs +2 -2
- package/Tests/Runtime/Components/RelationalComponentsTesterSimple.cs +4 -4
- package/Tests/Runtime/DataStructures/BalancedKDTreeTests.cs +2 -2
- package/Tests/Runtime/DataStructures/CyclicBufferTests.cs +3 -3
- package/Tests/Runtime/DataStructures/QuadTreeTests.cs +2 -2
- package/Tests/Runtime/DataStructures/SpatialTreeTests.cs +4 -4
- package/Tests/Runtime/DataStructures/UnbalancedKDTreeTests.cs +2 -2
- package/Tests/Runtime/Extensions/DictionaryExtensionTests.cs +2 -3
- package/Tests/Runtime/Extensions/EnumExtensionTests.cs +2 -2
- package/Tests/Runtime/Extensions/IListExtensionTests.cs +3 -3
- package/Tests/Runtime/Extensions/LoggingExtensionTests.cs +4 -4
- package/Tests/Runtime/Extensions/RandomExtensionTests.cs +3 -3
- package/Tests/Runtime/Extensions/StringExtensionTests.cs +2 -2
- package/Tests/Runtime/Helper/ArrayConverterTests.cs +3 -3
- package/Tests/Runtime/Helper/FormattingHelperTests.cs +3 -3
- package/Tests/Runtime/Helper/ObjectHelperTests.cs +2 -2
- package/Tests/Runtime/Helper/ReflectionHelperTests.cs +3 -3
- package/Tests/Runtime/Helper/SceneHelperTests.cs +3 -3
- package/Tests/Runtime/Helper/WallMathTests.cs +4 -4
- package/Tests/Runtime/Performance/KDTreePerformanceTests.cs +2 -2
- package/Tests/Runtime/Performance/QuadTreePerformanceTests.cs +2 -2
- package/Tests/Runtime/Performance/RandomPerformanceTests.cs +2 -2
- package/Tests/Runtime/Performance/RelationComponentPerformanceTests.cs +2 -2
- package/Tests/Runtime/Performance/SpatialTreePerformanceTest.cs +2 -2
- package/Tests/Runtime/Performance/UnbalancedKDTreeTests.cs +2 -2
- package/Tests/Runtime/Random/DotNetRandomTests.cs +2 -2
- package/Tests/Runtime/Random/LinearCongruentialGeneratorTests.cs +2 -2
- package/Tests/Runtime/Random/PcgRandomTests.cs +2 -2
- package/Tests/Runtime/Random/RandomTestBase.cs +5 -5
- package/Tests/Runtime/Random/RomuDuoRandomTests.cs +2 -2
- package/Tests/Runtime/Random/SplitMix64RandomTests.cs +2 -2
- package/Tests/Runtime/Random/SquirrelRandomTests.cs +2 -2
- package/Tests/Runtime/Random/SystemRandomTests.cs +2 -2
- package/Tests/Runtime/Random/UnityRandomTests.cs +2 -2
- package/Tests/Runtime/Random/WyRandomTests.cs +2 -2
- package/Tests/Runtime/Random/XorShiftRandomTests.cs +2 -2
- package/Tests/Runtime/Random/XorShiroRandomTests.cs +2 -2
- package/Tests/Runtime/Serialization/JsonSerializationTest.cs +5 -5
- package/Tests/Runtime/Utils/SpriteRendererMetadataTests.cs +3 -4
- package/Tests/Runtime/WallstopStudios.UnityHelpers.Tests.Runtime.asmdef +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
namespace UnityHelpers.Editor
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Editor
|
|
2
2
|
{
|
|
3
3
|
#if UNITY_EDITOR
|
|
4
4
|
using System;
|
|
5
5
|
using System.IO;
|
|
6
|
-
using Core.Attributes;
|
|
7
|
-
using Core.Extension;
|
|
8
6
|
using UnityEditor;
|
|
9
7
|
using UnityEngine;
|
|
10
8
|
using Utils;
|
|
9
|
+
using WallstopStudios.UnityHelpers.Core.Attributes;
|
|
10
|
+
using WallstopStudios.UnityHelpers.Core.Extension;
|
|
11
11
|
|
|
12
12
|
public sealed class AnimationCopier : ScriptableWizard
|
|
13
13
|
{
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
namespace UnityHelpers.Editor
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Editor
|
|
2
2
|
{
|
|
3
3
|
#if UNITY_EDITOR
|
|
4
4
|
using System;
|
|
5
5
|
using System.Collections.Generic;
|
|
6
6
|
using System.Linq;
|
|
7
|
-
using Core.Extension;
|
|
8
7
|
using UnityEditor;
|
|
9
8
|
using UnityEngine;
|
|
9
|
+
using WallstopStudios.UnityHelpers.Core.Extension;
|
|
10
10
|
using Object = UnityEngine.Object;
|
|
11
11
|
|
|
12
12
|
[Serializable]
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
namespace UnityHelpers.Editor
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Editor
|
|
2
2
|
{
|
|
3
3
|
#if UNITY_EDITOR
|
|
4
4
|
using System;
|
|
5
|
-
using System.Linq;
|
|
6
5
|
using System.Collections.Generic;
|
|
6
|
+
using System.Linq;
|
|
7
7
|
using System.Reflection;
|
|
8
|
-
using Core.Attributes;
|
|
9
|
-
using Core.Helper;
|
|
10
|
-
using UnityEngine;
|
|
11
8
|
using UnityEditor;
|
|
12
|
-
using
|
|
9
|
+
using UnityEngine;
|
|
10
|
+
using WallstopStudios.UnityHelpers.Core.Attributes;
|
|
11
|
+
using WallstopStudios.UnityHelpers.Core.Helper;
|
|
12
|
+
using WallstopStudios.UnityHelpers.Utils;
|
|
13
13
|
|
|
14
14
|
// https://gist.githubusercontent.com/yujen/5e1cd78e2a341260b38029de08a449da/raw/ac60c1002e0e14375de5b2b0a167af00df3f74b4/SeniaAnimationEventEditor.cs
|
|
15
15
|
public sealed class AnimationEventEditor : EditorWindow
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
namespace UnityHelpers.Editor
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Editor
|
|
2
2
|
{
|
|
3
3
|
#if UNITY_EDITOR
|
|
4
4
|
using System;
|
|
5
5
|
using System.IO;
|
|
6
|
-
using Core.Attributes;
|
|
7
|
-
using Core.Extension;
|
|
8
6
|
using UnityEditor;
|
|
9
7
|
using UnityEngine;
|
|
10
8
|
using Utils;
|
|
9
|
+
using WallstopStudios.UnityHelpers.Core.Attributes;
|
|
10
|
+
using WallstopStudios.UnityHelpers.Core.Extension;
|
|
11
11
|
|
|
12
12
|
public sealed class AnimatorControllerCopier : ScriptableWizard
|
|
13
13
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
namespace UnityHelpers.Editor.CustomEditors
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Editor.CustomEditors
|
|
2
2
|
{
|
|
3
3
|
#if UNITY_EDITOR
|
|
4
|
-
using Core.Extension;
|
|
5
4
|
using UnityEditor;
|
|
6
5
|
using UnityEngine;
|
|
7
|
-
using UnityHelpers.
|
|
6
|
+
using WallstopStudios.UnityHelpers.Core.Extension;
|
|
7
|
+
using WallstopStudios.UnityHelpers.Utils;
|
|
8
8
|
|
|
9
9
|
[CustomEditor(typeof(MatchColliderToSprite))]
|
|
10
10
|
public sealed class MatchColliderToSpriteEditor : Editor
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
namespace UnityHelpers.Editor
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Editor
|
|
2
2
|
{
|
|
3
3
|
using System.Collections.Generic;
|
|
4
4
|
using System.Linq;
|
|
5
|
-
using Core.Extension;
|
|
6
5
|
using UnityEditor;
|
|
7
6
|
using UnityEngine;
|
|
7
|
+
using WallstopStudios.UnityHelpers.Core.Extension;
|
|
8
8
|
|
|
9
9
|
public enum FitMode
|
|
10
10
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
namespace UnityHelpers.Editor
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Editor
|
|
2
2
|
{
|
|
3
3
|
#if UNITY_EDITOR
|
|
4
4
|
using System;
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
using System.Collections.Generic;
|
|
7
7
|
using System.Linq;
|
|
8
8
|
using System.Reflection;
|
|
9
|
-
using Core.Attributes;
|
|
10
9
|
using UnityEditor;
|
|
11
10
|
using UnityEngine;
|
|
11
|
+
using Core.Attributes;
|
|
12
12
|
using Core.Extension;
|
|
13
13
|
using Core.Helper;
|
|
14
|
-
using UnityHelpers.Utils;
|
|
14
|
+
using WallstopStudios.UnityHelpers.Utils;
|
|
15
15
|
using Object = UnityEngine.Object;
|
|
16
16
|
|
|
17
17
|
public sealed class PrefabCheckWizard : ScriptableWizard
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
namespace UnityHelpers.Editor
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Editor
|
|
2
2
|
{
|
|
3
3
|
#if UNITY_EDITOR
|
|
4
4
|
using System;
|
|
5
5
|
using System.Collections.Generic;
|
|
6
6
|
using System.IO;
|
|
7
7
|
using System.Linq;
|
|
8
|
+
using UnityEditor;
|
|
9
|
+
using UnityEngine;
|
|
8
10
|
using Core.Attributes;
|
|
9
11
|
using Core.Extension;
|
|
10
12
|
using Core.Helper;
|
|
11
|
-
using UnityEditor;
|
|
12
|
-
using UnityEngine;
|
|
13
13
|
using Object = UnityEngine.Object;
|
|
14
14
|
|
|
15
15
|
[Serializable]
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
namespace UnityHelpers.Editor
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Editor
|
|
2
2
|
{
|
|
3
3
|
#if UNITY_EDITOR
|
|
4
4
|
using System;
|
|
5
5
|
using UnityEditor;
|
|
6
6
|
using UnityEngine;
|
|
7
|
-
using
|
|
7
|
+
using Core.Helper;
|
|
8
8
|
|
|
9
9
|
[CustomPropertyDrawer(typeof(StringInList))]
|
|
10
10
|
public class StringInListDrawer : PropertyDrawer
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
namespace UnityHelpers.Editor
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Editor
|
|
2
2
|
{
|
|
3
3
|
#if UNITY_EDITOR
|
|
4
4
|
using System;
|
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
using System.ComponentModel;
|
|
7
7
|
using System.IO;
|
|
8
8
|
using System.Linq;
|
|
9
|
-
using Core.Extension;
|
|
10
|
-
using Core.Helper;
|
|
11
9
|
using UnityEditor;
|
|
12
10
|
using UnityEngine;
|
|
13
11
|
using UnityEngine.Serialization;
|
|
14
|
-
using UnityHelpers.
|
|
15
|
-
using
|
|
12
|
+
using WallstopStudios.UnityHelpers.Core.Extension;
|
|
13
|
+
using WallstopStudios.UnityHelpers.Core.Helper;
|
|
14
|
+
using WallstopStudios.UnityHelpers.Utils;
|
|
16
15
|
using Object = UnityEngine.Object;
|
|
17
16
|
|
|
18
17
|
public sealed class TextureResizerWizard : ScriptableWizard
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
namespace UnityHelpers.Editor
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Editor
|
|
2
2
|
{
|
|
3
3
|
#if UNITY_EDITOR
|
|
4
4
|
using System;
|
|
5
5
|
using System.Collections.Generic;
|
|
6
6
|
using System.IO;
|
|
7
7
|
using System.Linq;
|
|
8
|
-
using Core.Attributes;
|
|
9
|
-
using Core.Extension;
|
|
10
8
|
using UnityEditor;
|
|
11
9
|
using UnityEngine;
|
|
12
|
-
using UnityHelpers.
|
|
10
|
+
using WallstopStudios.UnityHelpers.Core.Attributes;
|
|
11
|
+
using WallstopStudios.UnityHelpers.Core.Extension;
|
|
12
|
+
using WallstopStudios.UnityHelpers.Utils;
|
|
13
13
|
using Object = UnityEngine.Object;
|
|
14
14
|
|
|
15
15
|
public sealed class TextureSettingsApplier : ScriptableWizard
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
namespace UnityHelpers.Editor.Utils
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Editor.Utils
|
|
2
2
|
{
|
|
3
3
|
#if UNITY_EDITOR
|
|
4
|
-
using Core.Attributes;
|
|
5
4
|
using UnityEditor;
|
|
6
5
|
using UnityEngine;
|
|
6
|
+
using WallstopStudios.UnityHelpers.Core.Attributes;
|
|
7
7
|
|
|
8
8
|
// https://www.patrykgalach.com/2020/01/20/readonly-attribute-in-unity-editor/
|
|
9
9
|
[CustomPropertyDrawer(typeof(DxReadOnlyAttribute))]
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
namespace UnityHelpers.Editor
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Editor
|
|
2
2
|
{
|
|
3
3
|
#if UNITY_EDITOR
|
|
4
4
|
using System.Reflection;
|
|
5
|
-
using Core.Attributes;
|
|
6
|
-
using Core.Extension;
|
|
7
|
-
using UnityEngine;
|
|
8
5
|
using UnityEditor;
|
|
6
|
+
using UnityEngine;
|
|
7
|
+
using WallstopStudios.UnityHelpers.Core.Attributes;
|
|
8
|
+
using WallstopStudios.UnityHelpers.Core.Extension;
|
|
9
9
|
|
|
10
10
|
[CustomPropertyDrawer(typeof(WShowIfAttribute))]
|
|
11
11
|
public sealed class WShowIfPropertyDrawer : PropertyDrawer
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
namespace UnityHelpers.Core.Attributes
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Core.Attributes
|
|
2
2
|
{
|
|
3
3
|
using System;
|
|
4
4
|
using System.Collections;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
using System.Reflection;
|
|
8
8
|
using Extension;
|
|
9
9
|
using Helper;
|
|
10
|
+
using Helper.Partials;
|
|
10
11
|
using JetBrains.Annotations;
|
|
11
12
|
using UnityEngine;
|
|
12
13
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
namespace UnityHelpers.Core.Attributes
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Core.Attributes
|
|
2
2
|
{
|
|
3
3
|
using System;
|
|
4
4
|
using System.Collections;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
using System.Linq;
|
|
7
7
|
using System.Reflection;
|
|
8
8
|
using Extension;
|
|
9
|
-
using Helper;
|
|
9
|
+
using Helper.Partials;
|
|
10
10
|
using JetBrains.Annotations;
|
|
11
11
|
using Object = UnityEngine.Object;
|
|
12
12
|
|
|
@@ -23,11 +23,16 @@
|
|
|
23
23
|
return FieldsByType.GetOrAdd(
|
|
24
24
|
objectType,
|
|
25
25
|
type =>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
Enumerable
|
|
27
|
+
.Where<FieldInfo>(
|
|
28
|
+
type.GetFields(
|
|
29
|
+
BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic
|
|
30
|
+
),
|
|
31
|
+
prop =>
|
|
32
|
+
Attribute.IsDefined(
|
|
33
|
+
(MemberInfo)prop,
|
|
34
|
+
typeof(ValidateAssignmentAttribute)
|
|
35
|
+
)
|
|
31
36
|
)
|
|
32
37
|
.ToArray()
|
|
33
38
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
namespace UnityHelpers.Core.Extension
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Core.Extension
|
|
2
2
|
{
|
|
3
3
|
#if UNITY_EDITOR
|
|
4
|
-
using UnityEditor;
|
|
5
4
|
using System;
|
|
6
5
|
using System.Reflection;
|
|
6
|
+
using UnityEditor;
|
|
7
7
|
|
|
8
8
|
public static class SerializedPropertyExtensions
|
|
9
9
|
{
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
namespace UnityHelpers.Core.Extension
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Core.Extension
|
|
2
2
|
{
|
|
3
3
|
using System;
|
|
4
4
|
using System.Collections.Generic;
|
|
5
5
|
using System.Linq;
|
|
6
|
-
using System.Threading.Tasks;
|
|
7
6
|
using DataStructure;
|
|
8
7
|
using DataStructure.Adapters;
|
|
9
8
|
using Helper;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
namespace UnityHelpers.Core.Helper
|
|
1
|
+
namespace WallstopStudios.UnityHelpers.Core.Helper
|
|
2
2
|
{
|
|
3
3
|
using System;
|
|
4
4
|
using System.Collections;
|
|
@@ -7,15 +7,12 @@
|
|
|
7
7
|
using System.Reflection;
|
|
8
8
|
using DataStructure.Adapters;
|
|
9
9
|
using Extension;
|
|
10
|
+
using Partials;
|
|
10
11
|
using Random;
|
|
12
|
+
using UnityEditor;
|
|
11
13
|
using UnityEngine;
|
|
12
|
-
using UnityEngine.SceneManagement;
|
|
13
14
|
using Utils;
|
|
14
15
|
using Object = UnityEngine.Object;
|
|
15
|
-
#if UNITY_EDITOR
|
|
16
|
-
using UnityEditor;
|
|
17
|
-
using UnityEditor.SceneManagement;
|
|
18
|
-
#endif
|
|
19
16
|
|
|
20
17
|
public static partial class Helpers
|
|
21
18
|
{
|