From 1111f0d7a07020ec50ee9031c2948ea521198a97 Mon Sep 17 00:00:00 2001 From: Lillith Rose Date: Sun, 25 Jan 2026 20:12:57 -0500 Subject: [PATCH] fix getcomponentinchildrenwitherror --- Common/Runtime/ComponentHelper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Common/Runtime/ComponentHelper.cs b/Common/Runtime/ComponentHelper.cs index 2ed7203..5189578 100644 --- a/Common/Runtime/ComponentHelper.cs +++ b/Common/Runtime/ComponentHelper.cs @@ -1,3 +1,4 @@ +using System.Linq; using UnityEngine; namespace gay.lilyy.Common @@ -41,7 +42,7 @@ namespace gay.lilyy.Common { if (root == null) return null; - T[] components = root.GetComponentsInChildren(true); + T[] components = root.GetComponentsInChildren(true).Concat(root.GetComponents()).ToArray(); if (components.Length == 0) { return null;