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

Collider Key in TriggerEvents question

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

  1. KingOscarV


    Apr 9, 2018
    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


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