- Home /
UI button material shows up black?
I made a UI for my game yesterday and it was working great. when i loaded up unity today it wont show UI button materials anymore. now they just appear black? ive tried reloading unity, rebooting computer, recreating material, and reimporting assets. Does anyone have any suggestions as to how to fix this? its happening to all my buttons in every scene.
Answer by Piyush_Pandey · May 02, 2017 at 09:29 AM
You are using the "stone" material in your image "BossMode1". This material is having shader "Default/Diffuse" which is causing the problem.
Fix:
1) Convert the stone material to "Unlit/Texture" if your image is not having transparency. 2) Convert the stone material to "Unlit/Transparent Cutout" if your image is having transparency.
{Its great that you shared a screenshot. Easy to figure out}
Thank you very much and i'm sure it will come in handy to know this later :) apparently my issue was with a broken dontdestroyonload prefab of this menu after some exploring though. when i added the prefab back to my scene i was testing it in it started working again. lol which lead me to some way way bigger issues...