Detecting gameobjects in a collider in an if statement

Im using an OnTriggerexit where i want to detect if theres still a gameobject inside the collider besides the one that left using an if statement but i have no idea how to do it.

Hello

You just need to create a List<Collider> MyList and add the colliders that enters (OnTriggerEnter) and remove them from the list when leaves (OnTriggerExit).

This way your list will have in all moments all colliders inside the trigger.

Bye!