- Home /
2D Sprite Background Rendering
Hi all, I made a bunch of 2d sprites for a small top down rpg game i'm going to start as a side project and I imported the sprites into Unity and it appears Unity renders the defaulted green background I used for the background of my sprite sheets. Is there a way I can simply remove this within Unity?
Thanks.
Answer by robertbu · Apr 12, 2013 at 01:57 AM
In order to have transparency in Unity you need three things:
An alpha channel on the texture you try to import with the alpha set appropriately for transparent areas.
Import settings that preserve the Alpha channel. As a starting point, select the texture and in the Inspector set Texture Type to 'Advanced', and set Format to RGBA 32 Bit.
A shader that supports transparency. As a starting point, you can try the Unlit/Transparent shader.
If the "green" background is there without the alpha channel set to 0, then you are better off writing a batch script in Photoshop to fix the problem.
Your answer
![](https://koobas.hobune.stream/wayback/20220613100104im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
2D Level Design (programmatically or not) 1 Answer
problem with background of 2d sprite 0 Answers
Infinite Scrolling 2D Sprite background 5 Answers
How to hide game window but show sprite? 0 Answers