cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

[3.8.2] The prefab records data of model resources that are no longer in use

Open zhefengzhang opened this issue 1 year ago • 0 comments

Cocos Creator version

3.8.2

System information

mac

Issue description

When modifying the MeshRenderer component's mesh in a prefab, if the mesh used is from a model resource that has the LOD (Level of Detail) feature enabled, the prefab will continuously reference this model resource. Even if the mesh is changed to use a different model resource, the prefab will still record the previously used model resource. 在 prefab 中修改 MeshRenderer 组件的 mesh 时,如果使用的 mesh 是来自开启了 lod 功能的模型资源,那么 prefab 中就会一直引用这个模型资源,即使修改 mesh 使用其他模型资源但是 prefab 中还是会记录使用过的模型资源。

This is the UUID of the model mesh resource currently being used by the prefab. 这是 prefab 正在使用的模型 mesh 资源 uuid a3e16dd686374d286af5b9ce79c42af

However, the prefab still retains the UUIDs of the previously used model mesh resources. 16bde542a3c9ec01ad3eb7b9f74f3c4

Relevant error log output

Steps to reproduce

https://download.cocos.org/CocosTechnicalSupport/VipIssues/XiYun/20240402001.mov

Minimal reproduction project

demo.zip

zhefengzhang avatar Apr 02 '24 10:04 zhefengzhang