diff --git a/AAC/AACCore/Editor/AACCore.cs b/AAC/AACCore/Editor/AACCore.cs index 4089a1e..752e976 100644 --- a/AAC/AACCore/Editor/AACCore.cs +++ b/AAC/AACCore/Editor/AACCore.cs @@ -40,9 +40,11 @@ namespace gay.lilyy.aaccore } public static Transform FindChildRecursive(Transform parent, string name) { - Transform childTransform = parent.GetComponentsInChildren() - .FirstOrDefault(t => t.gameObject.name == name); - return childTransform; + return parent.GetComponentsInChildren().FirstOrDefault(t => t.gameObject.name == name); + } + public static Transform[] FindChildrenRecursive(Transform parent, string name) + { + return parent.GetComponentsInChildren().Where(t => t.gameObject.name == name).ToArray(); } public static AacFlClip CreateConstraintWeightClip(AACAssets assets, VRCParentConstraint constraint, int index, int indexCount) {