C# Check If Gameobject is within Collider

I would like to check for if a gameobject is within a collider. The collider is turned off because I just want to use it for parameters. Any ideas how I can check for this? I’ve tried OncollisionEnter but that doesn’t work since the collider is turned off.

You could try enabling the collider and setting it to be a trigger and using OnTriggerEnter. It’ll still give you the parameters of a collider and stuff will pass through it.