com.wallstop-studios.unity-helpers 2.0.0-rc73.8 → 2.0.0-rc74.0

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.
Files changed (38) hide show
  1. package/Editor/AnimationEventEditor.cs +4 -5
  2. package/Editor/CustomEditors/MatchColliderToSpriteEditor.cs +1 -1
  3. package/Editor/CustomEditors/PersistentDirectoryGUI.cs +796 -0
  4. package/Editor/CustomEditors/PersistentDirectoryGUI.cs.meta +3 -0
  5. package/Editor/CustomEditors/SourceFolderEntryDrawer.cs +275 -0
  6. package/Editor/CustomEditors/SourceFolderEntryDrawer.cs.meta +3 -0
  7. package/Editor/FitTextureSizeWindow.cs +5 -44
  8. package/Editor/PersistentDirectorySettings.cs +248 -0
  9. package/Editor/PersistentDirectorySettings.cs.meta +3 -0
  10. package/Editor/PrefabChecker.cs +1 -2
  11. package/Editor/{AnimationCopier.cs → Sprites/AnimationCopier.cs} +33 -166
  12. package/Editor/{AnimationCreator.cs → Sprites/AnimationCreator.cs} +16 -80
  13. package/Editor/Sprites/ScriptableSpriteAtlas.cs +95 -0
  14. package/Editor/Sprites/ScriptableSpriteAtlas.cs.meta +3 -0
  15. package/Editor/Sprites/ScriptableSpriteAtlasEditor.cs +930 -0
  16. package/Editor/Sprites/ScriptableSpriteAtlasEditor.cs.meta +3 -0
  17. package/Editor/{SpriteCropper.cs → Sprites/SpriteCropper.cs} +80 -77
  18. package/Editor/{SpriteSettingsApplier.cs → Sprites/SpriteSettingsApplier.cs} +9 -76
  19. package/Editor/{TextureResizerWizard.cs → Sprites/TextureResizerWizard.cs} +1 -1
  20. package/Editor/{TextureSettingsApplier.cs → Sprites/TextureSettingsApplier.cs} +1 -1
  21. package/Editor/Sprites.meta +3 -0
  22. package/Editor/Utils/DxReadOnlyPropertyDrawer.cs +1 -1
  23. package/Runtime/Core/Helper/DirectoryHelper.cs +64 -0
  24. package/Runtime/Core/Helper/Partials/ObjectHelpers.cs +3 -2
  25. package/Runtime/UI/LayeredImage.cs +10 -8
  26. package/package.json +13 -1
  27. package/Editor/SpriteAtlasGenerator.cs +0 -895
  28. package/Editor/SpriteAtlasGenerator.cs.meta +0 -3
  29. package/Editor/Utils/GUIHorizontalScope.cs +0 -20
  30. package/Editor/Utils/GUIHorizontalScope.cs.meta +0 -3
  31. package/Editor/Utils/GUIIndentScope.cs +0 -20
  32. package/Editor/Utils/GUIIndentScope.cs.meta +0 -3
  33. /package/Editor/{AnimationCopier.cs.meta → Sprites/AnimationCopier.cs.meta} +0 -0
  34. /package/Editor/{AnimationCreator.cs.meta → Sprites/AnimationCreator.cs.meta} +0 -0
  35. /package/Editor/{SpriteCropper.cs.meta → Sprites/SpriteCropper.cs.meta} +0 -0
  36. /package/Editor/{SpriteSettingsApplier.cs.meta → Sprites/SpriteSettingsApplier.cs.meta} +0 -0
  37. /package/Editor/{TextureResizerWizard.cs.meta → Sprites/TextureResizerWizard.cs.meta} +0 -0
  38. /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 GUIIndentScope())
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 GUIHorizontalScope())
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 GUIIndentScope indent = new();
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 GUIHorizontalScope())
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"))
@@ -3,7 +3,7 @@
3
3
  #if UNITY_EDITOR
4
4
  using UnityEditor;
5
5
  using UnityEngine;
6
- using WallstopStudios.UnityHelpers.Core.Extension;
6
+ using Core.Extension;
7
7
  using WallstopStudios.UnityHelpers.Utils;
8
8
 
9
9
  [CustomEditor(typeof(MatchColliderToSprite))]