Is it possible for colliders work on the edge only ?

Lets say i need to use colliders as shield, but this shield can be turned on and off. If a projectile touches the edge of the shield, its assume its hitting the shield, but if the shield is off, and a projectile fly into the shield, before hitting any target, the shield turn back on, it should not hit the shield, it will continue to fly and hit the target.

But at the moment, colliders will be triggered even the projectile went into the shield. Can i enforce the collider to work at the edge of the shape only ?

Please be noted that i use more than just circle or sphere. so calculating the distance from center of the collider might not work.

You’ll have to do some custom stuff to get this to work. I would suggest using a trigger. That way you can get all of the information out of the contact and make the collisions happen as you see fit.