Check if collider is colliding with something,Check if a collider contains any colliding objects
Is there a way to check, if the collider is currently colliding with anything? I can't use OnTriggerEnter(), because OnTriggerEnter() is not being called, when the player gets spawned inside the box collider. Therefore I need to check on Start of the game object, if there is currently something colliding. Don't want to specifically check for the player, because it would be not efficient to be required to assign the player to every single box collider.,Hey, I am searching for a function to check, if a collider has any colliding objects at the given moment, but I can't find one in Unity. Problem is, that if my player spawns in the box collider, OnTriggerEnter() is not called. Therefore I would need a check on the start of the object, if the player is inside. I want to avoid to specifically check for the position of the player, because i would need to add a reference to it then to tons of boxes or I'd need to GetComponent in Tons of Objects and both would be not very efficient.