Search Unity

Unity 5.4 Button auto-clicks

Discussion in '2D' started by andreas28at, Aug 18, 2016.

  1. andreas28at

    andreas28at

    Joined:
    Aug 18, 2016
    Posts:
    1
    When I create a button in unity 5.4 the button just clicks automatic when i press play in the editor. I haven't been using unity before, so I can't say if it would happen in other versions. My project is in the android platform, and it's 2D.

    First i create a script, then I attatch it to a empty gameobject. Then I press the little + sign on the OnClick() in the button properties, so I can add the gameobject with the script attached.

    I have screenshots of button properties, EventSystem, Canvas, gameobject and the Script.

    If anyone know what i have done wrong, please let me know. Thanks in advance.
     

    Attached Files: