Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    222
    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:
    2,049
    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:
    222
    lol1.png


    You may also use things like Tags when doing collision detection