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

Bug Trigger and Collision not working with all correct components

Discussion in 'Editor & General Support' started by AYoder2002, Dec 13, 2022.

  1. AYoder2002

    AYoder2002

    Joined:
    Aug 27, 2022
    Posts:
    3
    I am having a peculiar issue with OnTrigger/OnCollision in my project. I have my game objects set up in a way that works in a test project, but when I create the exact same scene and script in another project, suddenly nothing is working. I am only trying to set up the most basic trigger with one trigger object and one trigger in the scene for testing. Mostly I am looking for bug fixing advice such as settings to check that are related. Just to reiterate, I have the correct colliders, rigid bodies, and scripting, tested by me extensively, yet these are not working in one project while working perfectly in another. All scenes in the broken project share the same issue, including an empty testing scene. I am on version 2021.3.8f1.
     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    6,012
  3. AYoder2002

    AYoder2002

    Joined:
    Aug 27, 2022
    Posts:
    3
    I am certain that my components are set up correctly as I tested the exact same configuration in a different project and it worked perfectly fine.
     
  4. AYoder2002

    AYoder2002

    Joined:
    Aug 27, 2022
    Posts:
    3
    Here are my objects anyway if someone can see if something is wrong here, script is just OnTriggerEnter with debug.log inside
    upload_2022-12-13_6-0-55.png

    upload_2022-12-13_6-1-21.png