Error: NpRigidDynamic::isSleeping: Body must be in a scene.

NpRigidDynamic::isSleeping: Body must be in a scene.

What is this error? It spams the Development Console on a Windows Store App build but doesn’t show up for any other build target.

My application doesn’t even have multiple scenes and I have no idea how I would instantiate a gameobject/rigidbody outside of a scene if that’s what it thinks I’m doing.

Figured it out. Sort of.

It’s caused by having a disabled gameobject with a non kinematic rigidbody parented to an enabled one. I don’t know why that causes this error. Or why it only causes it on a Windows Store App build.

The work around I use is setting the rigidbody as kinematic and then toggling it as not kinematic when I enable the gameobject. This gets rid of the error.