Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
## [9.0.2] - 2024-02-06
### Fixed
- Provide custom packing override for users to override to address DANB-526. (Case DANB-526)
- Fixed layers are not shown in LayerImportSettings after unselecting all layers and applying. (Case DANB-569)
  • Loading branch information
Unity Technologies committed Feb 6, 2024
1 parent 77504d7 commit d5d4663
Show file tree
Hide file tree
Showing 27 changed files with 785 additions and 198 deletions.
1 change: 1 addition & 0 deletions .buginfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package: 2D PSD Importer
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# Changelog

## [9.0.2] - 2024-02-06
### Fixed
- Provide custom packing override for users to override to address DANB-526. (Case DANB-526)
- Fixed layers are not shown in LayerImportSettings after unselecting all layers and applying. (Case DANB-569)

## [9.0.1] - 2023-08-15
### Fixed
- Fixed case where PSDImporter does not support the PVRTC compression format for the iOS platform. (Case DANB-500)
- Provide custom packing override for users to override to address DANB-526. (Case DANB-526)

## [9.0.0] - 2023-02-23
### Fixed
Expand Down Expand Up @@ -254,4 +261,4 @@
- Handles include or exclude hidden layers
- Supports Prefab generation that reconstruct generated Sprites to original art asset layout
- Prefab generation supports GameObject grouping based on Adobe Photoshop layer grouping
- Supports 2D Animation v2 single character with multiple Sprites workflow
- Supports 2D Animation v2 single character with multiple Sprites workflow
25 changes: 10 additions & 15 deletions Editor/PSDImportData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ public int importedTextureWidth
get => m_ImportedTextureWidth;
set => m_ImportedTextureWidth = value;
}

[SerializeField]
int m_ImportedTextureHeight;
public int importedTextureHeight
{
get => m_ImportedTextureHeight;
set => m_ImportedTextureHeight = value;
}

[SerializeField]
Vector2Int m_DocumentSize;
public Vector2Int documentSize
Expand All @@ -52,11 +52,7 @@ public int textureActualWidth

[SerializeField]
PSDLayerData[] m_PsdLayerData;
public PSDLayerData[] psdLayerData
{
get => m_PsdLayerData;
set => m_PsdLayerData = value;
}
public PSDLayerData[] psdLayerData => m_PsdLayerData;

public void CreatePSDLayerData(List<BitmapLayer> bitmapLayer)
{
Expand Down Expand Up @@ -103,7 +99,7 @@ class PSDLayerImportSetting: IPSDLayerMappingStrategyComparable
[SerializeField]
string m_SpriteId;
GUID m_SpriteIDGUID;

public string name;
public int layerId;
public bool flatten;
Expand All @@ -113,7 +109,7 @@ class PSDLayerImportSetting: IPSDLayerMappingStrategyComparable
public int layerID => layerId;
string IPSDLayerMappingStrategyComparable.name => name;
bool IPSDLayerMappingStrategyComparable.isGroup => isGroup;

public GUID spriteId
{
get
Expand All @@ -134,7 +130,7 @@ public GUID spriteId
}
}
}

/// <summary>
/// PSDLayer data for PSDImportData for last import state
/// </summary>
Expand Down Expand Up @@ -180,7 +176,7 @@ public bool isGroup
get => m_IsGroup;
set => m_IsGroup = value;
}

[SerializeField]
bool m_IsImported;
public bool isImported
Expand All @@ -196,10 +192,10 @@ public Vector2Int layerSizeOnFile
get => m_LayerSizeOnFile;
set => m_LayerSizeOnFile = value;
}

}


/// <summary>
/// Data for extracting layers and colors from PSD
/// </summary>
Expand All @@ -209,5 +205,4 @@ class PSDExtractLayerData
public PSDLayerImportSetting importSetting;
public PSDExtractLayerData[] children;
}
}

}
Loading

0 comments on commit d5d4663

Please sign in to comment.