Forum Discussion
"Shared Body Handle (Script)"
Hello all,
I am working on building a chess game in Mesh and I'm running into a particular problem. I have it set up in such a way that the user should be able to select any piece of the player who's turn it is. This works fine when I only have one player in the experience. However, when I hit 'K' to add another player to the split screen, this second player is unable to select any of the pawns. I have this narrowed down somewhat. There is a deactivated "piece picker" object with buttons on each of the pawns, that will remain inactive until the pawn reaches the other side of the board, at which point, it will let the user choose what type of piece the want it to become. When I have the second player click on a pawn, I get this error:
This led me to track down the 'Shared Body Handle (Script)' on the buttons. If I look at the copies made for the second player, each one appears to have a shared body handle that points to nothing.
Does anyone know why this might be occurring and/or how to fix it? Thanks!
Note: All of this is happening while developing and testing it in Unity. I haven't yet uploaded the project as an environment.