...
// TextureBlock
var Texture = new BABYLON.TextureBlock("Texture");
Texture.texture = new BABYLON.Texture("https://www.babylonjs-playground.com/textures/BJS-logo_v3.png");
...
Expected
Texture.texture = new BABYLON.Texture(
'...',
scene // <<< add this
)
This should work as by default it would use the last created scene on Engine. The main issue is we can not infer the name of the member holding on the scene in the case of generated code.
I ll check to be sure in TS that the scene is an optional input.