📜  unity 销毁所有带有标签的对象 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:28.801000             🧑  作者: Mango

代码示例1
GameObject[] taggedObjects = GameObject.FindGameObjectsWithTag("Tag");   
foreach (GameObject object in taggedObjects) {
    Destroy(object);
}