Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
## [3.0.0] - 2019-11-06
### Changed
- Update version number for Unity 2020.1
- Update documentation
  • Loading branch information
Unity Technologies committed Nov 5, 2019
1 parent 80c5d85 commit bdd6adb
Show file tree
Hide file tree
Showing 18 changed files with 128 additions and 80 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## [3.0.0] - 2019-11-06
### Changed
- Update version number for Unity 2020.1
- Update documentation

## [2.0.6] - 2019-10-18
### Fixed
- Fixed SpriteRect name clash when Photoshop layer is renamed to the same name as an exisiting user created SpriteRect

## [2.0.5] - 2019-08-06
### Fixed
- Physics Shape not saved into Sprite when importing with AssetDatabase V2
Expand Down
177 changes: 104 additions & 73 deletions Documentation~/PSDImporter.md

Large diffs are not rendered by default.

Binary file added Documentation~/images/IncreaseSize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation~/images/LayerGrouping.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation~/images/LayerHierarchy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation~/images/MovedSpriteRect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation~/images/OriginalSpriteRect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation~/images/PhotoshopSetup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation~/images/SpriteRect1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation~/images/SpriteRect2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation~/images/SpriteRect_following.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation~/images/SpriteRect_table1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation~/images/SpriteRect_table2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation~/images/propertysettings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation~/images/table1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation~/images/table2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions Editor/PSDImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,14 @@ void ImportFromLayers(AssetImportContext ctx, Document doc)
{
spriteImportData.RemoveAll(x => removedLayersSprite.Contains(x.spriteID));

// First look for any user created SpriteRect and add those into the name hash
foreach (var spriteData in spriteImportData)
{
var psdLayer = psdLayers.FirstOrDefault(x => x.spriteID == spriteData.spriteID);
if (psdLayer == null)
spriteNameHash.Add(spriteData.name.GetHashCode());
}

foreach (var spriteData in spriteImportData)
{
var psdLayer = psdLayers.FirstOrDefault(x => x.spriteID == spriteData.spriteID);
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "com.unity.2d.psdimporter",
"version": "2.0.5",
"unity": "2019.3",
"unityRelease": "0b3",
"version": "3.0.0",
"unity": "2020.1",
"unityRelease": "0a10",
"displayName": "2D PSD Importer",
"description": "A ScriptedImporter for importing Adobe Photoshop PSB (Photoshop Big) file format. The ScriptedImporter is currently targeted for users who wants to create multi Sprite character animation using Unity 2D Animation Package.",
"keywords": [
Expand All @@ -12,16 +12,16 @@
],
"category": "2D",
"dependencies": {
"com.unity.2d.common": "2.0.2",
"com.unity.2d.animation": "3.0.5",
"com.unity.2d.common": "3.0.0",
"com.unity.2d.animation": "4.0.0",
"com.unity.2d.sprite": "1.0.0"
},
"relatedPackages": {
"com.unity.2d.psdimporter.tests": "2.0.5"
"com.unity.2d.psdimporter.tests": "3.0.0"
},
"repository": {
"type": "git",
"url": "[email protected]:unity/2d.git",
"revision": "32fbfc4d3040a10e35abd2efee35086c77b66837"
"revision": "b8688c8a88e8066298fc5f686b999b70d457883e"
}
}

0 comments on commit bdd6adb

Please sign in to comment.