how to detect Object A entering a collider on object B, using a script on object B.

so, for reasons of streamlining other bits of the code, I would like to have a script that I can put on a game object, and detect entries into its own trigger area. Something like an OnTriggerEnter (Trigger thisTrigger) function, if you’ll forgive the pseudocode. Is there a way to do this?

OnTriggerEnter will work as is.

The method is called on both the trigger and the entering trigger. The details passed in will always be for the other entity involved in the collision.

OnTriggerEnter will work without any modification. On the trigger GameObject the call will have details of the entering collider.