Jump to content

transparent background ?


ftguy2018
 Share

Recommended Posts

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
    }
};

 

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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