Search Unity

Unity Event Trigger iOS

Discussion in 'iOS and tvOS' started by Basen, Aug 13, 2015.

  1. Basen

    Basen

    Joined:
    Mar 17, 2015
    Posts:
    14
    Greetings,

    I am having issues with the Event Trigger component.

    I have a scene where I have:
    • - a main Camera that has a Physics 2D Raycaster,
    • - Event System object
    • - Sprite with a BoxCollider2D with an Event Trigger component.
    The Event Trigger component is using an OnPointerClick() to call a method.
    This is working fine while in the unity editor, however it stops working on iOS devices. I have tried all combinations of the Event System(TouchScript on/off, Standalone on/off, Mobile on/off, etc...).

    This is the only thing thats standing between App Review and this game...

    Any ideas are most welcome!
     
  2. HanSoloYolo

    HanSoloYolo

    Joined:
    May 22, 2017
    Posts:
    19
    I am having the same issue right now. Physics Raycaster and Colliders and Event Triggers all work on PC, Android, and even Macintosh but does not work for iOS devices. No idea why.
     
  3. eska_cze

    eska_cze

    Joined:
    Dec 17, 2012
    Posts:
    1
    Same issues here.
    Seems like PhysicsRaycaster and EventTriggers works well on pc/mac/android but have no luck to make it work on iOS, even EventTriggers are working for uGUI objects.
     
  4. yamamotoBT

    yamamotoBT

    Joined:
    Oct 31, 2014
    Posts:
    7
    I am troubled with the same problem.
    PhysicsRaycaster and EventTriggers appear to work well with pc / mac / android, but they can not be run on iOS. EventTriggers also works with uGUI objects.
    Does anyone know the solution method?
    The version of unity is 2017.4.5f1
     
  5. geff

    geff

    Joined:
    Mar 3, 2013
    Posts:
    28
    Hi, same problem here, but I found a solution.
    It seems that defining MaxRayIntersection on PhysicsRaycaster with a value greater than 0 does not result in any raycast results.

    Setting the value to 0 resolves the problem

    It's a bug in the PhysicsRaycaster.cs
     
    bjornustwo likes this.