- Home /
Question by
e-bonneville · Feb 18, 2011 at 04:45 AM ·
alpha-channelgetpixel
Using GetPixel to get the alpha of a pixel
Is it applicable on a .png with an alpha channel? It doesn't seem to be working for me.
Comment
Best Answer
Answer by jonas-echterhoff · Feb 18, 2011 at 09:49 AM
There is no reason this shouldn't work. Does the alpha channel show correctly in the texture inspector? Does it work for other textures?
Yes, I solved it. I wasn't calling the function correctly in coordination with RaycastHit.textureCoord
.
Your answer
Follow this Question
Related Questions
Better to have alpha textures in the same material and mesh, or separate? 0 Answers
Unity's default shaders' blending is messed up? 1 Answer
Custom Transparent shader is not transparent 1 Answer
Changing texture to pixels several problems 1 Answer
Problem with GetPixel from a resized texture in 5.4 0 Answers