Hello,
I searched through and through and haven’t been able to find an answer to this.
Is it possible to count the number of colliders hit by Physics.OverlapSphere? If yes, how?
Thanks in advance,
Eugen
Hello,
I searched through and through and haven’t been able to find an answer to this.
Is it possible to count the number of colliders hit by Physics.OverlapSphere? If yes, how?
Thanks in advance,
Eugen
Physics.OverlapSphere
returns an array of Colliders
. All you have to do (if I understand your question properly) is to access the Length
property of this array.