- Home /
Environment Material Disappears after ingame level restart
Hi, I'm kind of a newbie so this might sound a bit silly. While working on the survival shooting game tutorial I encountered a problem when restarting the level after the player dies:
public void RestartLevel ()
{
Application.LoadLevel (Application.loadedLevel);
}
(I call this function using an animator event). After restarting the scene, during the running of the game, the shadows just turn darker however after I exit the testing mode the entire environment loses its material and displays itself all just in plain white!
Note that only the environment is effected and not the characters, so I guess the problem is somehow connected to the environment renderer. thanx.
Are you doing some sort of 'Fade Scene' and if so do you have something like '...shared$$anonymous$$aterial = ...' ?
I don't think I am doing neither. I am using the same assets that were given with the Survival Shooter tutorial.
Your answer
Follow this Question
Related Questions
Everty 3D objects tinted blue after upgrade unity version 0 Answers
How do I access secondary maps through c# 1 Answer
How can i get my quad to only render my texture without stretching it? 1 Answer
Mipmap view not working in editor. 0 Answers
One material for many objects with different textures 2 Answers