Cocos Creator 3.7 does not update sprite sheets when they are updated. Only the texture changes but the sprite frames are not. This breaks the sprites in the scene, inspector and assets view.
Expected behaviour:
When entering Cocos Creator, sprite sheets are re-loaded and updated. Sprites are correctly displayed in the Assets list and scene view. Sprite properties are updated in the Inspector.
Reproduce:
Extract the files in the attached zip.
Add the contents of the sheet1 folder to a new empty 2d project.
Everything looks fine, so far.
Open the file system folder of the project and replace the sheet.plist and sheet.png with the files from the sheet2 folder.
Go back to Cocos Creator. The texture is updated but most sprite frames are now broken:
With this it’s not possible to update sprite sheets anymore.
Using Reimport asset does not fix the issue.
Archive.zip (57.4 KB)
Koei
February 15, 2023, 10:57am
#2
opened 06:02AM - 30 Jan 23 UTC
closed 09:01AM - 03 Feb 23 UTC
Bug
ECO: Feedback
Compatibility
P2
Module: AssetSystem
Editor
### Cocos Creator version
3.6.2,3.7.0
### System information
window 10
### I… ssue description
https://forum.cocos.org/t/topic/145077
![image](https://user-images.githubusercontent.com/40415168/215397041-1e74ff47-1234-44ad-9cfc-d1f582dc1842.png)
### Relevant error log output
_No response_
### Steps to reproduce
testRes:
[testRes.zip](https://github.com/cocos/cocos-engine/files/10532928/testRes.zip)
1. Create a new project and add plist.
创建工程,添加图集资源
![image](https://user-images.githubusercontent.com/40415168/215397363-febaaf83-43d8-4ef5-8372-4c5b70f4cbbb.png)
2. Display exception after replacing resources.
替换资源后显示异常
![image](https://user-images.githubusercontent.com/40415168/215397792-fa07f014-27b7-4849-8b06-095cebeab9f7.png)
![image](https://user-images.githubusercontent.com/40415168/215397941-6a8502d9-b6c3-423a-b525-a8a9ba555c0b.png)
3. Deleting the meta file and re-creating the sprite displays correctly
![image](https://user-images.githubusercontent.com/40415168/215398753-5daa7867-18d1-4ea3-a72b-192a0452671f.png)
ps: 3.6.2 Testing normal
### Minimal reproduction project
_No response_
This will be fixed in 3.7.1
Great to hear that!
Where is the best point to place bug reports anyways. Is it here or on the GitHub project?
Please use the issues in our engine repo
Cocos Engine is an open-source framework for building 2D & 3D real-time rendering and interactive contents, especially video games, which can be deployed to mobile, desktop and web. It is inher...