Search Unity

Giant Warning/Error preventing compile?

Discussion in 'Scripting' started by Nanako, Nov 28, 2015.

  1. Nanako

    Nanako

    Joined:
    Sep 24, 2014
    Posts:
    1,047
    I normally get a lot of warnings in the console, the vast majority are "You made this variable but never used it" which usually comes from designing things and not having finished implementing them yet. i'd disable them if i could, for now i just ignore them.

    Right now, i'm getting this error in console


    The editor refuses to enter play mode because of this "compile error"

    But it's not an error, it's just a giant F***off list of warnings i've accumulated from a combination of unfinished and deprecated code. I don't believe there's anything in here that should block compiling, and i've no intention of repairing many of these warnings since that would just be more hassle for me later.

    can anyone explain what's going on here?
     
  2. Nanako

    Nanako

    Joined:
    Sep 24, 2014
    Posts:
    1,047
    Oh, wait, there's more. I didn't scroll down far enough


    That looks like an error, but not in my code. can anyone explain?
     
  3. guitarxe

    guitarxe

    Joined:
    Dec 1, 2013
    Posts:
    131
    Uh, well it's not an error in your scripts, it's an error with Unity. Looks to me like maybe some files either got corrupted or went missing (are you using any scm, or have been moving files around?)

    In any case, back up your temp folder and try nuking it.
     
  4. Nanako

    Nanako

    Joined:
    Sep 24, 2014
    Posts:
    1,047
    it seems to have cleared itself up without me doing anything. I do seem to get these transient errors often, though this was the biggest and least specific one i've ever seen