-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [4.0.1] - 2020-07-07 ### Fixed - Fixed ArgumentException thrown when 2D Game Kit is imported for the first time (case 1244287) - Updated to use non-experimental AssetImporter (case 1254380)
- Loading branch information
Unity Technologies
committed
Jul 7, 2020
1 parent
dc75498
commit 762a82e
Showing
6 changed files
with
40 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,24 +5,24 @@ | |
using UnityEngine; | ||
using Unity.Collections; | ||
using System.Linq; | ||
using UnityEditor.Experimental.AssetImporters; | ||
using UnityEditor.AssetImporters; | ||
using UnityEditor.U2D.Animation; | ||
using UnityEditor.U2D.Common; | ||
using UnityEditor.U2D.Sprites; | ||
using UnityEngine.Assertions; | ||
using UnityEngine.Experimental.U2D.Animation; | ||
using UnityEngine.U2D; | ||
using UnityEngine.U2D.Animation; | ||
using UnityEditor.MemoryProfiler; | ||
using UnityEngine.Profiling.Memory.Experimental; | ||
using UnityEngine.Scripting.APIUpdating; | ||
|
||
namespace UnityEditor.U2D.PSD | ||
{ | ||
/// <summary> | ||
/// ScriptedImporter to import Photoshop files | ||
/// </summary> | ||
[ScriptedImporter(4, "psb")] | ||
[HelpURL("https://docs.unity3d.com/Packages/[email protected]/manual/index.html")] | ||
[HelpURL("https://docs.unity3d.com/Packages/com.unity.2d.psdimporter@latest")] | ||
[MovedFrom("UnityEditor.Experimental.AssetImporters")] | ||
public class PSDImporter : ScriptedImporter, ISpriteEditorDataProvider | ||
{ | ||
class UniqueNameGenerator | ||
|
@@ -342,7 +342,7 @@ TextureGenerationOutput ImportTexture(AssetImportContext ctx, NativeArray<Color3 | |
var textureSpriteSettings = m_TextureImporterSettings.ExtractTextureSpriteSettings(); | ||
textureSpriteSettings.packingTag = m_SpritePackingTag; | ||
textureSpriteSettings.qualifyForPacking = !string.IsNullOrEmpty(m_SpritePackingTag); | ||
textureSpriteSettings.spriteSheetData = new UnityEditor.Experimental.AssetImporters.SpriteImportData[spriteCount]; | ||
textureSpriteSettings.spriteSheetData = new UnityEditor.AssetImporters.SpriteImportData[spriteCount]; | ||
textureSettings.npotScale = TextureImporterNPOTScale.None; | ||
textureSettings.secondaryTextures = secondaryTextures; | ||
var spriteImportData = GetSpriteImportData(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters