using System.Collections; using System.Collections.Generic; using UnityEngine; public class FormManager : MonoBehaviour { //隐藏所有子物体 int i; public void DisAllChild() { for (i = 0; i < transform.childCount; i++) transform.GetChild(i).gameObject.SetActive(false); } }