- Home /
This question was
closed Jul 02, 2013 at 09:17 AM by
Eugenius for the following reason:
The question is answered, right answer was accepted
Question by
Eugenius · Jun 24, 2013 at 05:14 PM ·
javascriptphysicsoverlapsphere
Physics: Is it possible to count the number of colliders hit with OverlapSphere?
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
Comment
Best Answer
Answer by brandonsbarber · Jun 24, 2013 at 05:18 PM
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.
Aww God.
I got so caught up in my scripts that I forgot that it returns an array.
Thanks!