EndLayoutGroup: BeginLayoutGroup must be called first. UnityEngine.GUILayout:EndHorizontal()

Issue #28 resolved
Former user created an issue

When I select path to my arduino libraries folder it keeps giving me errors, the errors are even consistent since they seem to (at random) pick some of the EndLayoutGroup's in UduinoManager.cs and give this error: EndLayoutGroup: BeginLayoutGroup must be called first. UnityEngine.GUILayout:EndHorizontal() (can also be EndVertical). It also (more consistently) gives me the error: DirectoryNotFoundException: Could not find a part of the path 'C:\Users\pc\Documents\unity\uduino test\Assets\Uduino\Arduino\libraries'. System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) (at <fb001e01371b4adca20013e0ac763896>:0) even tho this isn't the path I've picked and it has actually put the library in the correct folder. Even tho the library is in the correct place and i can run the uduino arduino program from libraries, it doesn't say "step done" in unity at setup step 1.

This causes me to not be able to get the "i'm ready button". The weirdest part is that when I use the skip button I can connect with my aruino uno but not with my 9dof razor imu.

Comments (7)

  1. Pravin Vaz

    Hi Marc, I am having the same issue. My details are:

    Unity version: 2020.3.23f1 , Windows 10 Professional, Arduino Mega2560

    The first step where I update the library with the new path (my libraries are inside programfiles\Arduino\libraries rather than the default users\documents location) , and when I click update, nothing happens. It still shows No Arduino connected if I click Discover ports. And the EndLayoutGroup error comes up. Attached a picture.

    Thanks

  2. Log in to comment