Hello, I keep getting this error at run time : pair.actors[0]->getNbShapes() == 0. It doesn't hurt the game play at all, but I'm wondering if i can fix it. Any ideas would be great. Thanks
2 Answers
2If it works just fine and you’re getting an error that you’d just like to hide you could catch the exception. Not particularly advisable though, it’s always better to solve the issue- but sometimes if you’re using a third party dll or library, you don’t have access to their code if they’re throwing unnecessary exceptions. Just a thought- every situation is different, so use at your discretion.
This solved the problem for me: http://forum.unity3d.com/threads/62618-pair.actors-Error
So.. what was the error message. You've posted a code snippet that might have problems, but it's hard to tell without some more context. Edit your question to include more context, and paste the message it produces when it compiles.
– flaviusxviiI think that was the error. I've seen it before.
– e-bonnevilleThe whole error code is : pair.actors[0]->getNbShapes() == 0
– ThumbStormIt doesn't produce a message when it compiles it happens while playing the game.
– ThumbStorm