Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
10
Found in
5.3.4f1
Issue ID
780486
Regression
No
[SerialPort] BytesToRead returns null reference
Steps to reproduce:
1) open the project
2) open scene 'Main'
3) run
Expected behavior: BytesToRead return 0
Actual: null reference
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
merccat
Nov 19, 2017 22:37
Just adding myself to the list of people disappointed that this does not work. It's very limiting to only be able to communicate with serial devices using strings. Hopefully either this gets resolved or Unity creates their own Serial system
juliens137
Oct 02, 2017 03:10
THIS NEEDS TO BE SOLVED! IT'S BEEN YEARS! This is unacceptable
walker_snapmaker
Jun 15, 2017 13:10
It is import for developers. I am developing 3D printer software. I must get the data from firmware of 3d printer, so i can send g-code rightly.
No received data, the function of sending g-code must not be done !
wren6991
Jun 03, 2017 14:26
A year later and no response? Not even to explain why it can't be fixed? One word -- "Sad!"
NNSkelly
Apr 17, 2017 15:32
April 2017, Unity 5.5, issue still exists. System.IO.SerialPort does seem more like a Microsoft module than a Unity one, but if that's the case, just elevate it to M$ to deal with, don't leave it hanging here in a "we might care some day but we don't now" state.
Timxu2015
Mar 15, 2017 07:49
Please solve this, great help!!!!
DC3210
Jan 23, 2017 08:06
HI,
please fix it, it's a big pb for all serial connection system when we can't have "BytesToRead" Information. At best the system remains on hold, at worst it crashes.
Best regards,
David.
tbenner
Dec 19, 2016 16:50
I would also like to see the SerialPort class more fully implemented. All the polling read functions, plus the readData event handler. For me, it seems the only way to get data into Unity from external sources is through the serial port. Please update this ASAP!
blaskojoz
Dec 15, 2016 20:45
Please fix it!
raziel_anarki
Nov 28, 2016 09:52
This should be fixed, imo, programming stuff with the arduino would be so much cleaner without the needed hacks, and implementation-forced synchronous red timeouts :(