📌  相关文章
📜  unity 停用游戏对象的所有碰撞器 - C# 代码示例

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

代码示例1
public void SetAllCollidersStatus (bool active) {
     foreach(Collider c in GetComponents ()) {
         c.enabled = true; //Or false if you want to desactivate them all
     }
 }