- Home /
Question by
Squitz · Sep 29, 2019 at 05:04 PM ·
collidersphysics2dcollider2doverlap
overlayCircle not working
my physics2D.OverlayCircle doesnt want to work and i dont know why.
this is my code: Collider2D[] colliders = Physics2D.OverlapCircle(transform.position, 10,layer);
it says: cannot implicitly convert type "unityEngine.collider2D" to "unityEngine.collider2D[]"
please help
Comment
Your answer
Follow this Question
Related Questions
Multiple Collider of Platform Effector overlap Problem 1 Answer
Checking for Colliders with Physics2D.OverlapBoxAll Won't Work? 0 Answers
How to add colliders as objects into a public variable in the inspector? 1 Answer
CircleCollider2D vs PolygonCollider2D: which collision solving is less expensive? 1 Answer
Physics2D.OverlapBoxNonAlloc not return all overlapped collider 1 Answer