GameObject father = GameObject.Find("CollidGroup");
int childCount = father.transform.childCount;
for (int i = 0; i < childCount; i++){
  Object.Destroy(father.transform.GetChild(i).gameObject);
}

 

相关文章:

  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2021-07-12
  • 2021-08-16
猜你喜欢
  • 2022-12-23
  • 2021-10-28
  • 2021-11-09
  • 2021-07-25
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
相关资源
相似解决方案