|
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
(comments are locked)
|
|
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 targetMat : Material; var bowTex : Texture; var cbTex : Texture; function Awake () { DontDestroyOnLoad(this); DontDestroyOnLoad(targetMat); DontDestroyOnLoad(bowTex); DontDestroyOnLoad(cbTex); }
Jun 27 '10 at 10:19 PM
ThumbStorm
oh, right - try remove all of that and just use DontDestroyOnLoad(gameObject);
Jun 27 '10 at 10:44 PM
Mike 3
(comments are locked)
|
