Arduinoã§åå¾ããå é度ã»ã³ãµã¼ã®å¤ãUnityã«ã·ãªã¢ã«éä¿¡ã§éãããã¨æããä¸è¨ã®ãã¼ã¸ãåèã«ãã¾ããã
Â
ã¨ãããã
Object reference not set to an instance of an object
ã¨ããè¦åæãåºã¦ãã¾ã¨ãã«åãã¾ããã§ããã
Â
ããã§ãåé¡ã追ã£ã¦ãã£ãã¨ãã
SerialHandler.csã®67è¡ç®
if (serialPort_.BytesToRead > 0) {
ããã®ifæã§ãã¾ãåãã¦ããªãããã§ãã
Â
ã¤ã¾ããserialPort_.BytesToReadãã使ããªãã®ããªï¼
Â
ã¨ãããã¨ã§ãä»åã¯ãã®ifæãã³ã¡ã³ãã¢ã¦ããããã¨ã§åä½ããã¾ããã
Â
å
Â
å¤æ´å¾