Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity UI Toggle not working on iPhone 6+

Discussion in 'iOS and tvOS' started by CodeMonke234, Feb 2, 2015.

  1. CodeMonke234

    CodeMonke234

    Joined:
    Oct 13, 2010
    Posts:
    181
    [This is with Unity 4.6.2f1]
    Very strange behavior touch behavior in iPhone 6+.

    I am using a Toggle on a canvas. It works fine in the editor and on the iPad Air.
    But on the iPhone 6+, it flickers when tapped, but does not change state.

    In addition, on the iPhone 6+ only, a touch is registered with TouchPhase.Began for two consecutive frames.

    for example, the following shows up twice for every tap (only on iPhone 6+)
    Code (CSharp):
    1. while (i < Input.touchCount)
    2. {
    3.     Touch t = Input.GetTouch(i);
    4.  
    5.   if ((t.phase == TouchPhase.Began)& (!EventSystem.current.IsPointerOverGameObject(t.fingerId)))
    6.   {
    7.     Debug.Log("Frame " + Time.frameCount + "Touch id " + t.fingerId + " pos" + t.position);
    8.     }
    9. }
    Thanks in advance for any feedback/ideas/advice on troubleshooting
     
    Last edited: Feb 2, 2015
  2. CodeMonke234

    CodeMonke234

    Joined:
    Oct 13, 2010
    Posts:
    181
    So after testing on other iPhone 6 and 6+ I believe I have identified the issue.

    If the 6+ is configured to use Zoomed in Settings...Display & Brightness...Display Zoom then the Toggle no longer works and the issue with TouchPhase.Began occuring in 2 frames occurs.

    This is definitely a bug in Unity 4.6.2f1.
     
  3. Gamba

    Gamba

    Joined:
    Feb 8, 2015
    Posts:
    29
    I just noticed this issue on Friday when downloading a new build to my 6+. I'm glad someone else is seeing it. How did you manage to come across the reason behind it? :eek:

    I also noticed that a SendMessageUpwards wasn't working on button events for me as well on the 6+.

    Everything works fine in the editor and a iPad 2 for me.
     
  4. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Did this get fixed?
     
  5. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    427
    Do you observe this issue on newer versions of Unity? If yes, could you submit a bug report so that we can look into it?
     
  6. Slonika

    Slonika

    Joined:
    Jun 15, 2014
    Posts:
    7
    issue is still present on Unity 5.3.1f1 on android (tested on SGS4 Mini)
     
  7. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    427
    Please check on newer Unity version. The current version is 5.3.4.