Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

(Fixed - own script failed) Some UI Buttons work in Editor - but not in the Standalone build

Discussion in 'UGUI & TextMesh Pro' started by fivearchers, Sep 3, 2014.

  1. fivearchers

    fivearchers

    Joined:
    Apr 17, 2009
    Posts:
    716
    I've found an issue with the new UI, that I can't seem to fix. One UI in the editor works just fine, but in a build buttons clicks aren't recognized (the buttons are highlighted, but nothing fires). Any ideas?
     
  2. fivearchers

    fivearchers

    Joined:
    Apr 17, 2009
    Posts:
    716
    Ah checking my logs looks like i'm getting "Type IPointerClickHandler expected Button received. i:0. Object reference not set to an instance of an object" (which means the call to my script by the button pooped the bed - so it's probably not ugui related..) ** I think** I'll have to double check...
     
  3. fivearchers

    fivearchers

    Joined:
    Apr 17, 2009
    Posts:
    716
    OK confirmed it was my bad! If you see that IPointerClickHandler expected error - double check that the function the button is calling, isn't throwing an error!