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

OnTriggerStay not getting called

Discussion in 'Physics' started by wouter_vugt, Aug 3, 2015.

  1. wouter_vugt

    wouter_vugt

    Joined:
    Feb 25, 2015
    Posts:
    128
    Hi,

    I updated my project from unity 4 to the latest unity version.
    However OnTriggerStay doesnt get called somehow??

    Am I doing something wrong? It all works fine in older versions.
     
  2. Qwertyuiop1234

    Qwertyuiop1234

    Joined:
    Jul 21, 2015
    Posts:
    10
    Same problem here, worked fine in 5.0. Does not work in 5.1.2p1 for me.
     
  3. Antony-Blackett

    Antony-Blackett

    Joined:
    Feb 15, 2011
    Posts:
    1,772
    If OnTriggerEnter is called, OnTriggerExit is not called and OnTriggerStay is not called then yes this would probably be a bug.

    Try creating the most simple project you can and recreate the issue with a couple colliders and a single script. If you can reproduce the problem there then submit it as a bug to unity. This will make it extremely easy for Unity to reproduce the issue and fix it.

    If you cannot recreate the issue this way then there's something else going on that might be specific to your project or how you've setup your scripts and objects. It may still be a bug in Unity but it might be something quite obscure and hard to find making a reproducible sample project even more useful for Unity to debug the problem.
     
  4. Qwertyuiop1234

    Qwertyuiop1234

    Joined:
    Jul 21, 2015
    Posts:
    10
  5. CoDeXiTo

    CoDeXiTo

    Joined:
    May 11, 2013
    Posts:
    10
    i update the unity to 5.2.0f3 and have the same problem, OnTriggerEnter work fine, OnTriggerExit, work fine but OnTriggerStay not work, never call to this :/, anoyne know how fix?
     
  6. dcarrigg

    dcarrigg

    Joined:
    May 21, 2014
    Posts:
    24
  7. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    659
    Same Issue. So many physics bugs in the core systems of late, its making it very hard to build anything.