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

Collider Key in TriggerEvents question

Discussion in 'Physics for ECS' started by MorgonKaffe, Jan 29, 2020.

  1. MorgonKaffe

    MorgonKaffe

    Joined:
    Apr 9, 2018
    Posts:
    5
    My question is basically if and how you can use the Collider Key to access data about the collider in question.

    In my game I want different trigger colliders on the same entity by using a compound collider. These different trigger colliders have some different effects, and I'm thinking of using the "Belongs To" filter as sort of a tag to make sure that the trigger gives the correct effect. To do that I need to get data about the trigger collider whenever a trigger collision is detected, and I assume that Collider Key is the way to do that. Does anyone know how you actually use them?
     
  2. ReadyPlayerEmma

    ReadyPlayerEmma

    Joined:
    May 3, 2019
    Posts:
    1
    Can someone who figured this out please reply back with the details ^^