ftguy2018 Posted March 11, 2019 Share Posted March 11, 2019 Hello, is there a way in PANDA2 to render on a transparent background so when we embed the game with an iframe, the image will overlay ? Quote Link to comment Share on other sites More sharing options...
enpu Posted March 13, 2019 Share Posted March 13, 2019 You can do this by setting the default scene background color to null: game.config = { scene: { backgroundColor: null } }; Note that the default loader (which is also a scene) has it's own default background color defined too. So if you want the default loader to have transparent background too (if you are not using your own loader), then you need to set that to null too: game.config = { scene: { backgroundColor: null }, loader: { backgroundColor: null } }; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.