IMU disconnect when changing scene
Hello,
I'm using an Imu to get head movement for a VR application in Unity. However, the imu disconnect between scene. If I unplug and plug it again (by USB), it connects again when changing at the next scene. I get no error, it's just the imu that disconnect without any reason. Do you have any idea what exactly happens ?
Thank you for your help.
Answer by lchobaz89 · May 16, 2018 at 08:06 AM
Well I figured out what was the problem and I post the solution in case someone get the same issue. Actually, when changing scene, I tried to connect the imu again which is not supported (the IMU plugin use a "connect()" function). Thus, in this plugin, I just managed to connect to all imu only at the start of the game. It's not the ideal solution as it would be nice to plug new imu during game. Maybe I should check in details the "connect()" function and avoid to reconnect imu that are already connected.
I hope this answer will be helpful for other people with the same problem.