galacean / engine

A typescript interactive engine, support 2D, 3D, animation, physics, built on WebGL and glTF.
https://galacean.antgroup.com/engine
MIT License
4.2k stars 299 forks source link

Mobile Debug View in Code Editor Error #2134

Closed Oskang09 closed 3 months ago

Oskang09 commented 3 months ago

Describe the bug

Was playing around and having issues on second project, as per left side code-editor mobile debug view not working but run on seperated tabs was fine.

Project Link: https://galacean.antgroup.com/editor/project/46500008

Screenshots

image

Desktop:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'name') at euL._getAssetVirtualPath (preview.js:1352:6404) at euL._buildIR (preview.js:1352:4792) at async preview.js:1352:7235 at async euL.buildPackage (preview.js:1352:2626) at async eu0.prebuild (preview.js:1548:6389) at async m (preview.js:1552:1685) at async preview.js:1552:1972



 Suspected was because of this, but not sure why the new projects not created together by default, but first project was come with all these shaders, mesh and material

 **Note: image was taken from other working projects**

![image](https://github.com/galacean/engine/assets/15674107/22c2578e-ed52-4c4f-8a6a-85ae9516c94b)
MrKou47 commented 3 months ago

Hi @Oskang09,Thanks for your issue. It seems like a bug in Galacean editor and we have fixed it recently. Could you try it again?

Oskang09 commented 3 months ago

Hi @MrKou47 , yea it's working fine right now, Since issue was fixed so will close the issue.