Find All GameObject in Circle Area

i have problem with find gameobject in circle area
i tried with Collider2D and tags but didnt work
i have more 200 objects in sence and i just want show gameObject in Circle Area

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class CircleShow : MonoBehaviour


public GameObject ParentObj;

public GameObject GroundObjectsArray;

public List GroundObjectsList = new List();

public SpriteRenderer SpriteGround;

void Awake()


    SpriteGround = ParentObj.transform.GetComponentsInChildren<SpriteRenderer>();

    GroundObjectsArray = new GameObject[ParentObj.transform.childCount];


void Update()


for (int i = 0; i < GroundObjectsArray.Length; i++)

        GroundObjectsArray *= ParentObj.transform.GetChild(i).gameObject;*

SpriteGround*.color -= new Color(0, 0, 0, 255);*
// get which gameobject in circle area
public void ObjectsInArea(GameObject GroundObj)
i new in unity and i use Physics2D.OverlapCircle but didn’t work for me because it just return boolean(true , false) i need just calculation Gameobject in area set to list

When you are new to game development in general you should learn how to solve problems. First since you know you are working with Unity and you’re using Physics2D you would do a google search for “Unity Physcis2D”. The first result usually gives you the documentation for Physics2D. When you scroll down to the static methods you should look out for a method which might be useful for your problem. Most names are pretty straight forward to understand. If not there’s a short description to the right. If that doesn’t help you can visit the documentation page for that method which often comes with a small example code snippet and a (hopefully) better description.

You should come across the method Physics2D.OverlapCircleAll

ps: If you have a look at Physics2D.OverlapCircle you will notice that it does not return a boolean but the first Collider2D that is within that circle. This method is useful when you only look for a single object and that object can be isolated through layers.

thanks very much
i was wrong Physics2D.overlapCircle it does not return a boolean
My problem was solved :stuck_out_tongue: