From cbf2d6b4eaa5febc5cf7da02724fc098829a28e4 Mon Sep 17 00:00:00 2001 From: Unity Technologies <@unity> Date: Thu, 14 Dec 2023 00:00:00 +0000 Subject: [PATCH] com.unity.2d.animation@9.1.0 ## [9.1.0] - 2023-12-14 ### Fixed - Blend weight vertex attribute is added only when sprite has bones. (case DANB-520) - Sprite Library editor drag and drop interactions. (case DANB-535) - Sprite Library editor drag and drop blocked by labels. (case DANB-558) - Adjust the copy-paste logic to not paste sprite mesh to the same sprite twice. (case DANB-530) - Sprite Library Asset is selected on creation. (case DANB-542) - Sprite Resolver previews not visible after editor regained focus. (case DANB-564) ### Added - SpriteSkin's Auto Rebind property can now be accessed from scripts. (case DANB-490) - Sprite Library public API to save an asset as a .spriteLib SpriteLibrarySourceAsset. --- CHANGELOG.md | 13 + .../SpriteLibraryEditor/CategoriesTab.uxml | 4 +- .../SpriteLibraryEditor/EditorTabHeader.uxml | 4 +- .../Assets/SpriteLibraryEditor/LabelsTab.uxml | 2 +- .../SpriteLibraryEditorWindow.uxml | 2 +- Editor/SkinningModule/CopyTool.cs | 6 +- .../SpriteLibraryEditor/DragAndDropData.cs | 19 ++ ...andler.cs.meta => DragAndDropData.cs.meta} | 0 .../SpriteLibraryEditor/DragAndDropHandler.cs | 256 --------------- .../DragAndDropManipulator.cs | 217 ++++++++++++ .../DragAndDropManipulator.cs.meta | 3 + .../SpriteLibraryEditor/UI/CategoriesTab.cs | 42 ++- .../UI/CustomElements/GridView.cs | 2 + .../UI/CustomElements/RenamableCollections.cs | 17 +- .../SpriteLibraryEditor/UI/LabelsTab.cs | 49 ++- .../SpriteLibraryEditor/WindowController.cs | 2 +- ...riteLibrarySourceAssetImporterInspector.cs | 2 + .../SpriteLibrarySourceAssetFactory.cs | 309 ++++++++++++++++++ .../SpriteLibrarySourceAssetFactory.cs.meta | 3 + Editor/SpriteLib/SpriteResolverInspector.cs | 43 ++- Editor/SpritePostProcess.cs | 23 +- LICENSE.md | 2 +- Runtime/SpriteLib/ISpriteLibraryCategory.cs | 20 ++ .../SpriteLib/ISpriteLibraryCategory.cs.meta | 3 + Runtime/SpriteLib/ISpriteLibraryLabel.cs | 18 + Runtime/SpriteLib/ISpriteLibraryLabel.cs.meta | 3 + Runtime/SpriteLib/SpriteLibraryAsset.cs | 6 +- Runtime/SpriteSkin.cs | 6 +- package.json | 18 +- 29 files changed, 746 insertions(+), 348 deletions(-) create mode 100644 Editor/SpriteLib/SpriteLibraryEditor/DragAndDropData.cs rename Editor/SpriteLib/SpriteLibraryEditor/{DragAndDropHandler.cs.meta => DragAndDropData.cs.meta} (100%) delete mode 100644 Editor/SpriteLib/SpriteLibraryEditor/DragAndDropHandler.cs create mode 100644 Editor/SpriteLib/SpriteLibraryEditor/DragAndDropManipulator.cs create mode 100644 Editor/SpriteLib/SpriteLibraryEditor/DragAndDropManipulator.cs.meta create mode 100644 Editor/SpriteLib/SpriteLibrarySourceAssetFactory.cs create mode 100644 Editor/SpriteLib/SpriteLibrarySourceAssetFactory.cs.meta create mode 100644 Runtime/SpriteLib/ISpriteLibraryCategory.cs create mode 100644 Runtime/SpriteLib/ISpriteLibraryCategory.cs.meta create mode 100644 Runtime/SpriteLib/ISpriteLibraryLabel.cs create mode 100644 Runtime/SpriteLib/ISpriteLibraryLabel.cs.meta diff --git a/CHANGELOG.md b/CHANGELOG.md index 34a236bd..ea083356 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [9.1.0] - 2023-12-14 +### Fixed +- Blend weight vertex attribute is added only when sprite has bones. (case DANB-520) +- Sprite Library editor drag and drop interactions. (case DANB-535) +- Sprite Library editor drag and drop blocked by labels. (case DANB-558) +- Adjust the copy-paste logic to not paste sprite mesh to the same sprite twice. (case DANB-530) +- Sprite Library Asset is selected on creation. (case DANB-542) +- Sprite Resolver previews not visible after editor regained focus. (case DANB-564) + +### Added +- SpriteSkin's Auto Rebind property can now be accessed from scripts. (case DANB-490) +- Sprite Library public API to save an asset as a .spriteLib SpriteLibrarySourceAsset. + ## [9.0.4] - 2023-09-05 ### Fixed - Fixed an issue where the FK doesn't blend correctly with the IK if solver solves from the bind pose. (case DANB-482) diff --git a/Editor/Assets/SpriteLibraryEditor/CategoriesTab.uxml b/Editor/Assets/SpriteLibraryEditor/CategoriesTab.uxml index bf537da9..5eb02de3 100644 --- a/Editor/Assets/SpriteLibraryEditor/CategoriesTab.uxml +++ b/Editor/Assets/SpriteLibraryEditor/CategoriesTab.uxml @@ -1,8 +1,8 @@ -