Hi there,I am facing a strange problem after the engine update,I don’t know if it’s a bug.
I use " pc.app.setSkybox() " after the skybox asset is loaded and " asset.unload()" to free VRAM after I switch to a new skybox,it works fine before the latest engine update, but now it can’t work
It seems that the second time you load the asset, in which the code still goes to line 52 and attempts to reload the asset … the cubemap faces aren’t loaded.
Are you doing anything special in your assetsManager.js script? Otherwise this seems like a bug, submit this in the engine repo. There has been work lately on skybox/cubemaps loading.
That script is just a helper for me to manage the assets at runtime and should do nothing to the main logic here.I delete that script and it still not work
I think this may be a bug, since the previous engine works fine.Thanks for your advice
I have noticed some recent problems with skybox showing up wrong, as well.
I have a project with multiple scenes. Only the skybox assigned to the “main” scene will display. The other scenes have their own skybox/cubemap asset, but it won’t display. Only the first one loaded, it seems.
Also, note that it displays fine if I “Launch” the scene from the Editor. The issue occurs when running the build.
This project does nothing to manipulate the skybox at runtime. It’s simply set in the Scene settings. It was working recently, but now it’s not.