Search Unity

2D Triggers not working on Android with Unity 5?

Discussion in '2D' started by kaustek, Mar 28, 2015.

  1. kaustek

    kaustek

    Joined:
    Oct 5, 2013
    Posts:
    7
    So I upgraded my finished, wholly working project from 4.6 to 5 and noticed on ANDROID ONLY the triggers do not seem to be firing.

    The objects in question are:

    Player:
    RigidBody2D (fixed angle)
    BoxCollider2D

    Collided Object:
    RigidBody2D (kinematic)
    PolygonCollider2D (trigger)

    And the script is of course getting called under OnTriggerEnter2D(Collider2D coll)

    What is odd is it works perfectly on Windows and in the preview mode inside Unity. Once on Android, the triggers no longer work although normal collisions with non-trigger objects do.

    Any ideas/workarounds?
     
  2. kaustek

    kaustek

    Joined:
    Oct 5, 2013
    Posts:
    7
    Fixed? Put the sprites on the same Order in Layer and it seemed to correct it
     
    theANMATOR2b likes this.
  3. MarcoAndrade26

    MarcoAndrade26

    Joined:
    Dec 23, 2014
    Posts:
    1
    I have the same issue, did you fix it?