Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Possibly Vague Build error (GUIUtility)

Discussion in 'Editor & General Support' started by ferverence, Aug 22, 2020.

  1. ferverence

    ferverence

    Joined:
    Jul 15, 2014
    Posts:
    56
    Anyone know how I can track this one down? It says GUIUtility without any specifics - Would it be a script related to GUI components? I've been using TextMeshPro - but this is the first build I've done for this project specifically.

    Also my scripts are pretty clean! There are no runtime errors with this project.

    upload_2020-8-22_15-37-1.png

    Thanks.
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,697
    I think the mention to guiutility is a red herring. It's just saying an error happened while processing the button press for creating a build in unity's UI. The fact there are no other errors is strange. Is there a build log somewhere?
     
  3. ferverence

    ferverence

    Joined:
    Jul 15, 2014
    Posts:
    56
    I'm unable to locate any build logs - Looked through all the AppData Unity folders and it's logs. Perhaps I'm missing it but i don't see much online about it either.
     
  4. ferverence

    ferverence

    Joined:
    Jul 15, 2014
    Posts:
    56
    Unsure what to do with this project - Still cannot build. I figured it would be worked out at some point... Cleaned everything up - No console warnings nor errors but I still get this on build attempt. Any ideas?
     
  5. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,697
    What platform are you trying to build for? Do you have all the necessary modules etc... installed for the target platform?
     
  6. ferverence

    ferverence

    Joined:
    Jul 15, 2014
    Posts:
    56
    It's targeted to PC. I can build other projects fine. I suppose it must be something within the project but I have no idea what it could be as there are no errors / warnings.
     
  7. ferverence

    ferverence

    Joined:
    Jul 15, 2014
    Posts:
    56
    I have noticed something strange with this project though - When I hit save, and then close the project it always mentions that I need to save again as if something is changing in the background. Other projects do not do this. And when I hit build it throws the above error in the console, but also this alert in the build window:

    upload_2020-10-5_13-50-7.png

    So something is actively modifying the project but I have no idea what it could be - But sounds like this might be the culprit.
     
    PraetorBlue likes this.
  8. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,697
    Do you have any editor scripts or asset store assets in the project?
     
  9. ferverence

    ferverence

    Joined:
    Jul 15, 2014
    Posts:
    56
    The only Editor script I have active is from PuppetMaster - from the Asset Store. I'm reluctant to remove that as it's a core asset in the game. I suppose I could make a backup and copy to test it.
     
    PraetorBlue likes this.
  10. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,697
    Sounds like a plan.
     
  11. ferverence

    ferverence

    Joined:
    Jul 15, 2014
    Posts:
    56
    OMG I JUST FOUND IT

    One of my scripts I had for some reason imported Unity Compiler....
     
    PraetorBlue likes this.
  12. ferverence

    ferverence

    Joined:
    Jul 15, 2014
    Posts:
    56
    Must have been a typo at some point heheh...

    Thanks for all your help :)
     
    PraetorBlue likes this.