I get above error when i add this code:
void OnDestroy()
{
//get "Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?)" error message
Destroy(renderer.material);
}
According to link text, i have to do this?