com.wallstop-studios.unity-helpers 2.0.0-rc73.9 → 2.0.0-rc74.1
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/AnimationEventEditor.cs +4 -5
- package/Editor/CustomEditors/MatchColliderToSpriteEditor.cs +1 -1
- package/Editor/CustomEditors/PersistentDirectoryGUI.cs +796 -0
- package/Editor/CustomEditors/PersistentDirectoryGUI.cs.meta +3 -0
- package/Editor/CustomEditors/SourceFolderEntryDrawer.cs +275 -0
- package/Editor/CustomEditors/SourceFolderEntryDrawer.cs.meta +3 -0
- package/Editor/FitTextureSizeWindow.cs +5 -44
- package/Editor/PersistentDirectorySettings.cs +248 -0
- package/Editor/PersistentDirectorySettings.cs.meta +3 -0
- package/Editor/PrefabChecker.cs +1 -2
- package/Editor/{AnimationCopier.cs → Sprites/AnimationCopier.cs} +33 -166
- package/Editor/{AnimationCreator.cs → Sprites/AnimationCreator.cs} +16 -80
- package/Editor/Sprites/ScriptableSpriteAtlas.cs +95 -0
- package/Editor/Sprites/ScriptableSpriteAtlas.cs.meta +3 -0
- package/Editor/Sprites/ScriptableSpriteAtlasEditor.cs +930 -0
- package/Editor/Sprites/ScriptableSpriteAtlasEditor.cs.meta +3 -0
- package/Editor/{SpriteCropper.cs → Sprites/SpriteCropper.cs} +80 -77
- package/Editor/{SpriteSettingsApplier.cs → Sprites/SpriteSettingsApplier.cs} +9 -76
- package/Editor/{TextureResizerWizard.cs → Sprites/TextureResizerWizard.cs} +1 -1
- package/Editor/{TextureSettingsApplier.cs → Sprites/TextureSettingsApplier.cs} +1 -1
- package/Editor/Sprites.meta +3 -0
- package/Editor/Utils/DxReadOnlyPropertyDrawer.cs +1 -1
- package/Runtime/Core/Helper/DirectoryHelper.cs +64 -0
- package/Runtime/Core/Helper/Partials/ObjectHelpers.cs +3 -2
- package/Runtime/UI/LayeredImage.cs +8 -6
- package/package.json +13 -1
- package/Editor/SpriteAtlasGenerator.cs +0 -895
- package/Editor/SpriteAtlasGenerator.cs.meta +0 -3
- package/Editor/Utils/GUIHorizontalScope.cs +0 -20
- package/Editor/Utils/GUIHorizontalScope.cs.meta +0 -3
- package/Editor/Utils/GUIIndentScope.cs +0 -20
- package/Editor/Utils/GUIIndentScope.cs.meta +0 -3
- /package/Editor/{AnimationCopier.cs.meta → Sprites/AnimationCopier.cs.meta} +0 -0
- /package/Editor/{AnimationCreator.cs.meta → Sprites/AnimationCreator.cs.meta} +0 -0
- /package/Editor/{SpriteCropper.cs.meta → Sprites/SpriteCropper.cs.meta} +0 -0
- /package/Editor/{SpriteSettingsApplier.cs.meta → Sprites/SpriteSettingsApplier.cs.meta} +0 -0
- /package/Editor/{TextureResizerWizard.cs.meta → Sprites/TextureResizerWizard.cs.meta} +0 -0
- /package/Editor/{TextureSettingsApplier.cs.meta → Sprites/TextureSettingsApplier.cs.meta} +0 -0
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
using UnityEngine;
|
|
10
10
|
using Core.Attributes;
|
|
11
11
|
using Core.Helper;
|
|
12
|
-
using Utils;
|
|
13
12
|
using WallstopStudios.UnityHelpers.Utils;
|
|
14
13
|
|
|
15
14
|
// https://gist.githubusercontent.com/yujen/5e1cd78e2a341260b38029de08a449da/raw/ac60c1002e0e14375de5b2b0a167af00df3f74b4/SeniaAnimationEventEditor.cs
|
|
@@ -173,7 +172,7 @@
|
|
|
173
172
|
|
|
174
173
|
DrawSpritePreview(item);
|
|
175
174
|
|
|
176
|
-
using (new
|
|
175
|
+
using (new EditorGUI.IndentLevelScope())
|
|
177
176
|
{
|
|
178
177
|
RenderAnimationEventItem(item, frame, frameRate);
|
|
179
178
|
if (i != stateCopy.Count - 1)
|
|
@@ -320,7 +319,7 @@
|
|
|
320
319
|
private void RenderAnimationEventItem(AnimationEventItem item, int frame, float frameRate)
|
|
321
320
|
{
|
|
322
321
|
int index = _state.IndexOf(item);
|
|
323
|
-
using (new
|
|
322
|
+
using (new EditorGUILayout.HorizontalScope())
|
|
324
323
|
{
|
|
325
324
|
if (
|
|
326
325
|
1 <= index
|
|
@@ -536,7 +535,7 @@
|
|
|
536
535
|
ParameterInfo[] arrayParameterInfo = item.selectedMethod.GetParameters();
|
|
537
536
|
if (arrayParameterInfo.Length == 1)
|
|
538
537
|
{
|
|
539
|
-
using
|
|
538
|
+
using EditorGUI.IndentLevelScope indent = new();
|
|
540
539
|
|
|
541
540
|
Type paramType = arrayParameterInfo[0].ParameterType;
|
|
542
541
|
if (paramType == typeof(int))
|
|
@@ -679,7 +678,7 @@
|
|
|
679
678
|
}
|
|
680
679
|
else if (!item.isTextureReadable && !string.IsNullOrEmpty(spriteName))
|
|
681
680
|
{
|
|
682
|
-
using (new
|
|
681
|
+
using (new EditorGUILayout.HorizontalScope())
|
|
683
682
|
{
|
|
684
683
|
GUILayout.Label($"Sprite '{spriteName}' required \"Read/Write\" enabled");
|
|
685
684
|
if (item.sprite != null && GUILayout.Button("Fix"))
|