x


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

more ▼

asked Jun 27 '10 at 09:51 PM

ThumbStorm gravatar image

ThumbStorm
420 27 33 42

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Try setting the material to be don't destroy on load too. If it goes grey, then the texture too

more ▼

answered Jun 27 '10 at 09:58 PM

Mike 3 gravatar image

Mike 3
30.7k 10 67 255

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)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2279
x281
x84

asked: Jun 27 '10 at 09:51 PM

Seen: 973 times

Last Updated: Jun 27 '10 at 09:51 PM