- Home /
Materials diffuse not loading correctly.
hey all, I have a plane that has a material set to transparent/diffuse with gun sight texture with an alpha channel (it's a .tif). I have this plane made so it doesn't destroy on load. Everything works great through the first level. Once the second level is loaded the plane is there but the material revert to a regular diffuse instead of a transparent/diffuse so the flat texture shows up without using the alpha. If anyone has experienced this and has a solution any help would be great. thanks
Answer by Mike 3 · Jun 27, 2010 at 09:58 PM
Try setting the material to be don't destroy on load too. If it goes grey, then the texture too
I've been trying to get this to work, but it still does the same thing.
var target$$anonymous$$at : $$anonymous$$aterial; var bowTex : Texture; var cbTex : Texture;
function Awake () { DontDestroyOnLoad(this); DontDestroyOnLoad(target$$anonymous$$at); DontDestroyOnLoad(bowTex); DontDestroyOnLoad(cbTex); }
oh, right - try remove all of that and just use DontDestroyOnLoad(gameObject);
Your answer
Follow this Question
Related Questions
Assigning UV Map to model at runtime 0 Answers
Get Texture 2D after all shader passes are applied 0 Answers
The Best Way to Highlight An Enemy 0 Answers
How to stretch a texture applied to a material 3 Answers
Exporting textures from B2M3 to Unity 5 0 Answers