playcanvas / editor

Issue tracker for the PlayCanvas Editor
https://playcanvas.com/
154 stars 28 forks source link

Add the ability to overwrite sprite assets in the Sprite Editor while keeping references (multipack) #142

Open tomthearcher opened 3 years ago

tomthearcher commented 3 years ago

I would like to be able to update sprites in my Playcanvas project using Texture packer with "Multipack" turned on. (to export a series of atlases rather than one) And for Playcanvas to replace the sprites currently named the same, that are already in the project. (Specifically for UI work)

Currently, all of the sprites get jumbled up if Texture packer reshuffles the items across the atlases. Even being able to replace sprites in a folder with new ones of the same name (and they will in turn update in the scenes) would help.

As a dev, I don't want to re-update all of the sprites manually when I am sent new assets from the designers. It's very common for all assets to be split over a fair few atlases.

yaustar commented 3 years ago

Renamed ticket to reflect outcome

yaustar commented 3 years ago

@tomthearcher it's a bit late but we have made some improvement towards this

https://playcanvas.com/project/708224/overview/news-from-playcanvas

When the texture atlas is updated, the existing sprite assets are no longer 'jumbled'. Existing frames are kept in order with new frames added at the end.

Deleted frames just show up blank to any sprite assets that were referencing those frames.

It doesn't address the multi atlas issue but should make it much easier to manage.