using UnityEngine; namespace SpookTubeEX; static class Util { // https://discussions.unity.com/t/how-to-find-an-inactive-game-object/129521 public static GameObject FindObject(this GameObject parent, string name) { Transform[] trs = parent.GetComponentsInChildren(true); foreach (Transform t in trs) { if (t.name.StartsWith(name)) { return t.gameObject; } } return null; } }