Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

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

Discussion in 'UI Toolkit' 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.
     
unityunity