Skip to content

构建资源路径错误 #18177

Open
Open
@hubluesky

Description

Cocos Creator version

3.8.5

System information

windows

Issue description

构建web-mobile时,在onAfterBuild的钩子回调,调用result.getAssetPathInfo返回路径不正确。

Relevant error log output

No response

Steps to reproduce

bug1:json资源在onAfterBuild的result.getAssetPathInfo(uuid),返回的assetPathInfo里没有这个json构建后存放的路径。还有这个json构建后会被添加序列号数据,我能不能自己指定,要不要添加这些数据。
bug2:只带动画的fbx文件(带其它的有没有问题,我没有测)在onAfterBuild的result.getAssetPathInfo(uuid),返回的assetPathInfo.raw路径是错误的,比如返回的是assets\resources\native\ab\abea7192-0498-4745-b969-4aa493b6e424@3f296.cconb,实际上是在assets\resources\import\ab\abea7192-0498-4745-b969-4aa493b6e424@3f296.cconb,就是没在native里面,而是在import里,这个bug很多年了。

Minimal reproduction project

No response

Metadata

Assignees

Labels

BugNeeds TriageNeeds to be assigned by the team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions