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

Stupid bug with 4.6.2f?

Discussion in 'iOS and tvOS' started by screenname_taken, Jan 29, 2015.

  1. screenname_taken

    screenname_taken

    Joined:
    Apr 8, 2013
    Posts:
    663
    It seems the new compiler doesn't like it when you have objects in the scene that start with an integer in their name. I have an enemy called "4hitter" because it does 4 hits...
    Up to and including 4.6.1p5, it compiled with no issues (and in fact tested it in 64bits on an iphone6).
    Then today i downloaded the 4.6.2 version and Xcode started to show up to 80ish errors all in cpp files with a word that sounded like it wasn't expecting that. Can't remember it and stupid me didn't take a note. But all errors pointed to the object that had that name. So i just renamed it to FourHitter and everything is fine.
    Again, it worked great before! Unity isn't giving out any errors on "4hitter", but with 4.6.2, Xcode farts everything when it's named like that.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Hi,

    could you report it as a bug so it doesn't get lost?
     
  3. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Nice find on the bug, maybe a quick fix, I agree please report this asap so we can solve in 4.6.2 patch 1 for thursday next week if Unity devs are quick!
     
  4. screenname_taken

    screenname_taken

    Joined:
    Apr 8, 2013
    Posts:
    663
    HEY! HEY Listen!
    I made a script and named it 4_6UIMessageParentEnable, (perhaps it is a bad habit).
    Mono then took that "4" as a reserved word. It highlighted it the same as "false" or "null" and the like, as if it's a number, not the name of something else. It wasn't doing it before.
    Could this be related to the bug? I don't know how to update the initial bug report.

    Unless my eyes are just ruined and it was doing it before.
     
  5. Pix10

    Pix10

    Joined:
    Jul 21, 2012
    Posts:
    850
    You can reply to the email confirmation to append comments to your bug report.
     
    screenname_taken likes this.
  6. screenname_taken

    screenname_taken

    Joined:
    Apr 8, 2013
    Posts:
    663
    Ah yeah thx. It even said so at the confirmation email i think. Wish there was a thumbs up icon :p
     
  7. Pix10

    Pix10

    Joined:
    Jul 21, 2012
    Posts:
    850
  8. screenname_taken

    screenname_taken

    Joined:
    Apr 8, 2013
    Posts:
    663
  9. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    This should be fixed in the next patch. We weren't mangling names enough, and starting identifiers with a number is not valid in C++.