Debug.Log isn't working and "cleaning the mesh failed&q

hello again everybody, its me the loveable freakfish with another puzzling problem - debug.log is not working. I have a suspicion that it may be to do with an error i’m being given, though this error does not stop gameplay. the error reads:

cleaning the mesh failed

and nothing else. when i double click on the error it takes me to my project folder which is just confusing. the scene itself is not very complicated, just a few simple models and animated textures, though there is a beam on a flying saucer that has its mesh renderer turned on and off by a button for the visible effect.

i suspect that the Debug.Log problem has something to do with the error, but i cant think whats causing the error since it doesnt make too much sense D: anybody know whats going on?

I had that error before and it happened when I use zero scaling (in any axis) in a Mesh, or something similar.

Usually, this does not break gameplay at all.

Regarding the Debug.Log not working, I think there might be a problem with the logic, rather than with Debug.Log.

You need to be absolutely sure that the game is reaching that sentence in your code. Add some Debug.Log in a Start function, something simple like:

function Start()
{
   Debug.Log("This is a test!");
}

Just make sure the script having that Start function is attached to an enabled GameObject in the scene.

the code is definately being read, that debug.log command used to work, and i cant remember when it stopped working - but it was around the time that the error started popping up. ill look around for anything 0 scaled, thanks for the idea

I had this happen without the error yesterday. Somehow something got corrupted. I deleted the model the script was attached to and then re-added it to the scene and reattached the scripts. Then everything was fine again.

thanks :smile: i overwrote my project with my partner’s one to keep consistancy, and the error is gone. god only knows what causes it, but lets hope we’ve given future sufferers a solution. thanks for the help guys