Converting Floats to Byte[]?
I'm working on a script that involves an asset for Bluetooth multiplayer, and I'm getting the Method name Expected error, here is my code, followed by the part that is going wrong;
BluetoothForAndroid.WriteMessage(new byte[4] {
new byte[1](System.BitConverter.GetBytes(leftController.GetTouchPosition.x)),
new byte[1](System.BitConverter.GetBytes(leftController.GetTouchPosition.y)),
new byte[1](System.BitConverter.GetBytes(rightController.GetTouchPosition.x)),
new byte[1](System.BitConverter.GetBytes(rightController.GetTouchPosition.y))
});
Comment
Your answer
Follow this Question
Related Questions
Can't launch my Project from Unity Hub 0 Answers
Visual Studio Error 0 Answers
WebGL Build doesn't fully load on Github Pages 0 Answers
Unity cannot find bat files when opening 0 Answers