Help with Weird Error?: (m_IsVisibleInScene IsInScene()) == m_IsVisibleInScene

Hey everyone,

I’m getting this weird error in the console:

It seems to just pop up at random, I can go an entire play through without encountering it or it can happen twice within a few minutes.

Anybody have experience with this error and know what I should be looking at to fix the issue?

Thanks in advance for any info!

Bump. Nobody knows anything? :frowning:

I Have the same error…
By the looks of it, it seems it has something to do with the renderer… but I have no idea.
What I’m doing that seems to cause this, is change a material of an object at run-time.
But I have no idea why it pops an error… because everything seems to be working…
This is the line of code that is cousing it in my code:

I know its too late.
But can you tell me Duggo42 what model has the issue in. Like do you have an skinned animated model that is throwing the or a static model.
Stan

Hey Guys,

Yup, same error:
(m_IsVisibleInScene IsInScene()) == m_IsVisibleInScene

I notice this error is stemming from animated skinned meshes. If I play the scene with the animator controller enabled, I get a stream of errors. If I play the scene with the animator controller disabled and THEN enable it, no error. Hmmm. I wish I were a coder! :wink:

Hope this info helps in solving this.

Rory

I get this error when my script ends. If seems to occur because I replace the animated sprites at runtime. I guess for me it’s an issue with the editor finding the sprites it’s trying to draw no longer exist.

https://unity3d.com/cn/unity/beta/unity5.1.0b5

  • Mecanim: Fixed Animator exception (m_IsVisibleInScene && IsInScene()) == m_IsVisibleInScene) when disabling a game object with a disabled mesh renderer.

I get this error in Unity 2017.1 when using OnBecameVisible() with simple sprites. Not crushing in editor or anything. Apparently fixed in Unity 2017.2. When I will swithc will tell if error is still there.