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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Two triggers activating one another

Discussion in 'Visual Scripting' started by Felx325, Sep 16, 2022.

  1. Felx325

    Felx325

    Joined:
    Aug 30, 2014
    Posts:
    8
    Hi sorry if it has already been asked but I have two triggers in different game objects but childs from the same one, and they both trigger when the player walks in either of one. I have attached a file that shows how it is set up, hope it helps.

    Thanks in advance
     

    Attached Files:

  2. REDACT3D_

    REDACT3D_

    Joined:
    Nov 8, 2020
    Posts:
    221
    im sorry but i don't see an actual question?
    what seems to be your boggle?
     
  3. Felx325

    Felx325

    Joined:
    Aug 30, 2014
    Posts:
    8
    Sorry, they both trigger when the player walks into either of them, I want them to trigger only in their own collider and their own variable. Thank you
     
  4. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    895
    https://docs.unity3d.com/Manual/LayerBasedCollision.html

    Set up the collision matrix so that Player's layer doesn't collide with the On Trigger Enter layers.
     
    REDACT3D_ likes this.
  5. REDACT3D_

    REDACT3D_

    Joined:
    Nov 8, 2020
    Posts:
    221
    lol1.png


    You may also use things like Tags when doing collision detection