A strange one with BABYLON.CubeTexture

Hello, calling the code below from a class other than the class where “scene” was instantiated causes an error even if the reference to game.scene is good:

let envTexture = new BABYLON.CubeTexture('../assets/skyboxes/, this.game.scene, ["nx.jpg", "ny.jpg", "nz.jpg", "x.jpg", "y.jpg", "z.jpg"], true);

The Error is cryptic as it has to do with a loader coughing:
Uncaught TypeError: Cannot read property 'useDelayedTextureLoading' of undefined

1 Like

Hey, without a repro it is impossible to help you :frowning: