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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Canvas Buttons not working after second start

Discussion in '5.4 Beta' started by Deleted User, Mar 16, 2016.

  1. Deleted User

    Deleted User

    Guest

    Hey,

    I uninstall and install the game.

    First start: The canvas buttons react to touches.

    Second start: The canvas buttons are not working anymore. I touch the buttons but the buttons don't switch to "Pressed" state.

    Update 1: If I clear app data the buttons react to touches on first start.
     
  2. Alex-Lian

    Alex-Lian

    Guest

  3. Chaz32621

    Chaz32621

    Joined:
    Apr 17, 2015
    Posts:
    199
  4. adhamBer

    adhamBer

    Joined:
    Feb 14, 2015
    Posts:
    3
    Hi, Alex. I have a similar problem if you would be so kind to help me with because no one else is. I'm using unity 5.3.1f.

    I have a problem with some of the newer android phones.

    The buttons are not always working, they take multiple clicks to work. It is happening on phones such as S7 & note 5 And I don't have any phones like that so I can't test for myself , I found out about this problem after publishing my game.

    But I think I know why this happening, my buttons have 2 components. 1- the default OnClick() button component and is EMPTY. 2- a trigger event , on pointer down component.

    The reason I'm using an empty OnClick() button is to highlight the image of the button when the user presses it. And I want the function to work immediately after being pressed down and not on release hence the trigger event , on pointer down.

    Could this be the problem? Could these two be interfering with each other? Or is it because of the phone's sensitive screens? or the drag thresh hold in the event system? which is of default value of 5. should Increase the value?

    Note*** The buttons are working perfectly on Iphone, Wps and various androids (some old, some new) I have a J5 and a galaxy nexus.

    Please help! And thank you for your time and support!
     
  5. Alex-Lian

    Alex-Lian

    Guest

    @adhamBer -

    Sorry, the beta forum isn't a tech support area. It's focused mainly on issues found with features and regressions of 5.4 itself. I'll suggest that you need to take the 5.3 issue to the regular forums.