Alpha in texture showing up white in scene with unlit/transparent shader

I have a texture with a transparent gradient in the corner. It shows up correctly in photoshop and the unity preview. However, when the texture is used in a scene with an unlit/transparent (or any transparent shader) It shows a light white gradient in the corner where it should be transparent. The texture was created in photoshop using the feather tool to create the gradient.

Does anyone know how to fix this?

Unity preview:
97703-screen-shot-2017-07-13-at-82900-pm.png

Scene View:
97704-screen-shot-2017-07-13-at-82909-pm.png

Can you screen shot your material in the inspector and post it here?

2 Answers

2

well what I would recommend is:

  • If it is used for an in game object not UI → Convert the texture type to Texture
  • If not change the shader type (To Standard). Then shanger the render type to Transparent or Fade.

Hopefully that works.

I tried both of your suggestions, but neither one made a difference. I'm starting to thing it has something to do with the way the texture was generated... When I switched to the standard shader I played around with the color setting and the white corner changed color...

For me, it worked. Thanks

...it needs to be in a method, too... public class foo { public void DoSomething() { dynamic myEo = new ExpandoObject(); myEo.a="a"; } }

Can you screen shot your material in the inspector and post it here?

using System.Dynamic; public class expander : MonoBehaviour { dynamic myEo = new ExpandoObject(); myEo.a="a"; }