com.wallstop-studios.unity-helpers 2.0.0-rc79.9 → 2.0.0-rc80

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.
@@ -17,6 +17,7 @@ namespace WallstopStudios.UnityHelpers.Editor.Sprites
17
17
  Labels = 1 << 1,
18
18
  }
19
19
 
20
+ [Flags]
20
21
  public enum LabelSelectionMode
21
22
  {
22
23
  [Obsolete("Please select a valid value")]
@@ -25,6 +26,7 @@ namespace WallstopStudios.UnityHelpers.Editor.Sprites
25
26
  AnyOf = 1 << 1,
26
27
  }
27
28
 
29
+ [Flags]
28
30
  public enum SpriteSelectionBooleanLogic
29
31
  {
30
32
  [Obsolete("Please select a valid value")]
@@ -142,6 +144,10 @@ namespace WallstopStudios.UnityHelpers.Editor.Sprites
142
144
  [IntDropdown(0, 2, 4, 8, 16, 32)]
143
145
  public int padding = 4;
144
146
 
147
+ public bool enableTightPacking = true;
148
+
149
+ public bool enableAlphaDilation = false;
150
+
145
151
  [Tooltip(
146
152
  "Enable Read/Write on the generated atlas texture. Needed for some runtime operations, but increases memory."
147
153
  )]
@@ -782,6 +782,8 @@ namespace WallstopStudios.UnityHelpers.Editor.Sprites
782
782
  SpriteAtlasPackingSettings packingSettings = atlas.GetPackingSettings();
783
783
  packingSettings.enableRotation = config.enableRotation;
784
784
  packingSettings.padding = config.padding;
785
+ packingSettings.enableTightPacking = config.enableTightPacking;
786
+ packingSettings.enableAlphaDilation = config.enableAlphaDilation;
785
787
  atlas.SetPackingSettings(packingSettings);
786
788
 
787
789
  SpriteAtlasTextureSettings textureSettings = atlas.GetTextureSettings();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.wallstop-studios.unity-helpers",
3
- "version": "2.0.0-rc79.9",
3
+ "version": "2.0.0-rc80",
4
4
  "displayName": "Unity Helpers",
5
5
  "description": "Various Unity Helper Library",
6
6
  "dependencies": {},
@@ -53,3 +53,4 @@
53
53
 
54
54
 
55
55
 
56
+