- Home /
Photoshop Drawing to Unity
How in the world can I take a simple 2d drawing with a transparent background and place it in my game world.
Either I cant just drop it in and when I attach it to a cube or plane there is always a white background.
Even after making some stupid alpha layer, it still just shows up with the standard cube color.
Answer by Grady · Dec 22, 2011 at 04:17 AM
Hey!
OK, first of all, make sure that when you export it to .png format. Then import it to your Unity project. Then create a Plane. GameObject > Create Other > Plane and drag the image from your project onto the Plane in your scene.
Now I take it that you got that far, but your image is white where it should be transparent.... But what you have got to do, is, click on the plane in your scene, and look at the "Mesh Render" component. What you have to do is click on the dropdown menu for the Shader. The shader will probably be on something like "Diffuse"... Change the shader to: "Transparent > Diffuse". This will allow Unity to render the transparentness in your image.......
That should then show your image with transparency!!!!!!!!!
Hope this helps you!!! Comment back if you need more help!
-Grady
When I save it as a PNG, it just changes my photo into a big black square.
Well I figured it out, thank you. that will work for now
New Problem: The object is blurry when i play in game
try redoing it, delete the plane, then create a new one, and then attach the image back onto it!!!!
the problem is with my depth of field, and thats setup correct
Answer by exilekiller · Dec 22, 2011 at 07:27 AM
Well when I import it as a PNG, it just takes my image and makes it a big black square.
i took a snapshot of an example of what you are trying to do that i am doing in my current project... I have uploaded the picture to my website at this url: http://www.gradyfeatherstone.com/unity3d/pngplaneforexilekiller.png any transparent parts of your image will appear black when imported into your project!!!! but once you change the shader, any transparent areas should be transparent in your scene!!!!!!
Answer by Weddingphotographer57 · Nov 15, 2020 at 10:04 AM
Hi all, I found a solution. For Unity technique, see Brackets' tutorial called ANIMATE 2D CHARACTERS in Unity. I've been drawing sprites on Photoshop without any problems. For the animations though, I was drawing each frame in Photoshop instead of doing it on Unity.