Compare commits

...

2 commits

Author SHA1 Message Date
1111f0d7a0 fix getcomponentinchildrenwitherror 2026-01-25 20:12:57 -05:00
d47a03a36e move aac template 2026-01-25 18:59:09 -05:00
6 changed files with 2 additions and 1 deletions

View file

@ -1,3 +1,4 @@
using System.Linq;
using UnityEngine; using UnityEngine;
namespace gay.lilyy.Common namespace gay.lilyy.Common
@ -41,7 +42,7 @@ namespace gay.lilyy.Common
{ {
if (root == null) return null; if (root == null) return null;
T[] components = root.GetComponentsInChildren<T>(true); T[] components = root.GetComponentsInChildren<T>(true).Concat(root.GetComponents<T>()).ToArray();
if (components.Length == 0) if (components.Length == 0)
{ {
return null; return null;