using UnityEngine; public class DisableChildren : MonoBehaviour { private void Start() { ParticleSystem[] componentsInChildren = GetComponentsInChildren(); for (int i = 0; i < componentsInChildren.Length; i++) { componentsInChildren[i].gameObject.SetActive(value: false); } } }