Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by exilekiller · Dec 22, 2011 at 04:09 AM · 2dtransparencyphotoshop

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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

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

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image exilekiller · Dec 22, 2011 at 04:31 AM 0
Share

When I save it as a PNG, it just changes my photo into a big black square.

avatar image exilekiller · Dec 22, 2011 at 04:37 AM 0
Share

Well I figured it out, thank you. that will work for now

avatar image exilekiller · Dec 22, 2011 at 04:42 AM 0
Share

New Problem: The object is blurry when i play in game

avatar image Grady · Dec 22, 2011 at 05:32 AM 0
Share

try redoing it, delete the plane, then create a new one, and then attach the image back onto it!!!!

avatar image exilekiller · Dec 22, 2011 at 05:54 AM 0
Share

the problem is with my depth of field, and thats setup correct

Show more comments
avatar image
0

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Grady · Dec 22, 2011 at 09:54 AM 0
Share

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!!!!!!

avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to make a simple "That's all folks!" effect in 2D? 1 Answer

2D Animation Advice 2 Answers

Making transparent sprite render as quad 1 Answer

I have transparent areas in my sprite, how can they show up as transparent in Unity? 1 Answer

I have transparent shader, but after quad with it material all objects with not default sorting layer are unvisible 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges