/// <summary>
/// 移除物体的所有子物体
/// </summary>
/// <param name="gameObject"></param>
public void RemoveChild(Transform gameObject)
{
if (gameObject.transform.childCount == 0)
{
return;
}
foreach (Transform item in gameObject)
{
Destroy(item.gameObject);
}
}
04-24
2468

05-31
1201

06-25
4004

07-11
944
