• 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
2
Question by Zaffer · Nov 20, 2010 at 03:20 AM · grassalpha-channel

texture alpha channel not importing

Hi,

I made an alpha texture per the directions at http://unity3d.com/support/documentation/Manual/HOWTO-alphamaps.html. When I tried to import the texture, I used Assets/Import New Asset and navigated to my PSD file (which had an alpha channel), but after the texture was imported, it did not have an alpha channel. Am I doing something wrong in the import? Thanks.

Zaffer

Comment
Add comment · Show 1
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 Peter G · Nov 20, 2010 at 04:09 AM 0
Share

The first thing I would at is that in unity the import settings show a format with an alpha channel. Basically any format with an a somewhere in it i.e. RBGA, ARGB

3 Replies

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

Answer by Jessy · Nov 21, 2010 at 04:57 AM

There is some hint of transparency somewhere in your RGB layer. When this exists, then Unity will import the transparency of the file in, as an alpha channel, instead of the alpha you explicitly set in the Channels panel. I don't know of any tool to detect where this is occurring, and it's easy to have it happen in the normal process of creating a PSD. The typical thing to do, to fix your problem, is to just create a solid layer at the bottom of the stack. Personally, I use a Solid Color fill layer, because it doesn't require a whole image worth of pixels, like a regular layer would, so the file size of the PSD is not bloated.

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 Kacer · Mar 21, 2011 at 10:09 AM 0
Share

You're a lifesaver, for some reason i couldnt find anything about this in the unity documentation.

avatar image Roop · Jul 23, 2012 at 11:48 AM 0
Share

stumbled over this topic. very very helpful answer! thanks a lot!

avatar image Essential · Dec 05, 2012 at 07:49 PM 0
Share

Happened to me too. Thanks for the answer.

avatar image JoaquinRD · Feb 06, 2013 at 05:27 PM 1
Share

This didn't work for me, even after creating a Solid Color Fill layer at the bottom of the stack. I ended up having to flatten the image in order for it to work. $$anonymous$$aybe it's my version of Photoshop (CS).

avatar image briosh · Jan 23, 2014 at 09:58 AM 0
Share

thank you that worked! Couldn't think of it myself! Thumbed up

Show more comments
avatar image
0

Answer by hav_ngs_ru · Jul 13, 2014 at 08:39 PM

I see that the post is old, but I had such problem just now.

As I understood, Unity searches at leat one fully-transparent pixel in picture, and if it find it - PSD transparency imports instead alpha, else it will import PSD Alpha as is.

So if you want to import Alpha channel - do as Jessy said, and if you want to use PSD transparency - ensure to have at least one FULLY transparent pixel in your PSD.

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
avatar image
0

Answer by Ansemsnobody · Feb 26, 2019 at 05:31 PM

Just to post again about this issue; If you still have trouble, use the trim option in Photoshop and then change your texture import settings to Advanced>Non Power of 2>ToNearest. Not sure why this happens, but that should fix it if you tried everything else.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

8 People are following this question.

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

Related Questions

Alpha channeled grass 0 Answers

Removing rgb channels from material animation turns color black 1 Answer

How to make a default particle's texture? 1 Answer

Interactive Grass and Shrubbery? 2 Answers

unable to apply grass textures to terrain 3 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