Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

ArgumentException: Getting control 0's position error in an empty scene - kinda solved

Discussion in 'UIElements' started by JufJannieApps, Jul 10, 2019.

  1. JufJannieApps

    JufJannieApps

    Joined:
    Jan 8, 2016
    Posts:
    20
    I am getting this error:
    Code (CSharp):
    1. ArgumentException: Getting control 0's position in a group with only 0 controls when doing repaint
    2. Aborting
    In an empty Unity scene. I removed all my scripts from the project. I did create scene and still get the message.
    I keep reading that it is a UI issue. But I am not using any UI elements. The scene is empty.

    This is the other part of the error:
    Code (CSharp):
    1.  
    2. ArgumentException: Invalid path
    3. System.IO.Path.GetDirectoryName (System.String path)
    4.  
    Any Ideas?
     
  2. JufJannieApps

    JufJannieApps

    Joined:
    Jan 8, 2016
    Posts:
    20
    ok my solution that worked was, create a new project and copy all the none asset files over the existing ones from the old project.
    I did lose my layers etc, but at least no more error.