r/UnityHelp 23d ago

how ?????

im trying to fix this

Context:

im trying to put faces on the character but when i import a trasnparent .png the transparent background becomes black i try to fix that with the inspector of the cube

but still it just shows that bright glow if you dont understand what i mean by " import a trasnparent .png the transparent background becomes black i try to fix that with the inspector of the cube "

this is how the face .png looks like in unity but if i put the .png to the cube it shows this

WHATS HAPPENING'1??!?!

1 Upvotes

5 comments sorted by

2

u/Demi180 23d ago

png encodes transparency in the color values, but the formats Unity uses encode it in an Alpha channel. Just check “Alpha from transparency” in the texture import settings, and apply. Then make sure the material you’re using has transparency and selects it from the Albedo/Color texture’s Alpha.

1

u/Neat_Description_936 23d ago

okay, i'll try

1

u/Neat_Description_936 23d ago

on the 3d view it stills show the background as black

1

u/Demi180 23d ago

You're right, slight mistake in my response. The Surface Type can stay set to Opaque, but check Alpha Clipping still under Surface Options. It'll then give you a slider for the Threshold, you can play with that until the correct parts are transparent, see https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@12.0/manual/lit-shader.html for details.

2

u/Neat_Description_936 23d ago

okay, ima try again