Search Unity

`GUI' does not contain a definition for `Button'

Discussion in 'Editor & General Support' started by zRedCode, Apr 2, 2014.

  1. zRedCode

    zRedCode

    Joined:
    Nov 11, 2013
    Posts:
    131
    I need help...
    Programming a next previus system for a game, when i create a button, mondevelop not found the Button definition in GUI....
    Closing and reopenign unity and mono not help me, how i can fix this bug? i'm usioong unity 4.3, lastest version. I have always used the GUI.Button without problems, today not works... all definition starting with a,b and c are absents!
    Im using C#.

    (sorry for the english, im italian)
     
  2. Ian094

    Ian094

    Joined:
    Jun 20, 2013
    Posts:
    1,548
    Change the name of your script.
     
  3. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    More specifically, don't name your own classes the same thing as Unity classes.

    --Eric
     
  4. zRedCode

    zRedCode

    Joined:
    Nov 11, 2013
    Posts:
    131
    Thanks to all!