Jump to content

Bug: Deleting Layer


Recommended Posts

There is a strange bug I'm experiencing where I set a foreground layer


var foreground = new BABYLON.Layer("back0", "images/parchmentMap.jpg", scene, false, new BABYLON.Color4(1, 0, 0, 1));


then when I delete it with dispose(), all my sprites turn to the image used in the layer (but without the color).


While i'm here,


How would I go about getting my sprites to appear on top of this foreground layer? I would use  a background but I want to cover everything on the screen temporarily and display the sprites on top of the foreground image without deleting the scene.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...