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