Hello, i have assigned a skybox in the editor and now working on a day/night cycle so i want to change the skybox and as well the directional light. The light changes as expected, the skybox (that isn’t shown when i start the scene) does not change when the script for change it is runned too. I have set the 2 script attributes with 2 different skyboxes and have the following script
if i use this app.scene.setSkybox(this.cubemap.resources); it give me a grey sky.
I have pc.script.attribute(‘cubemap’, “asset”,[]); to set cubmap and nightmap attributes
and since some time ago with just this
it worked perfectly, but now if i lunch the scene also the initial skybox is not displayed (i mean the one set into editor).
EDIT: if the scene is open and i modify the mip to 2 into editor, the skybox appear (but it doesn’t change when it should)