FindChildrenRecursive

This commit is contained in:
Lillith Rose 2026-02-24 19:19:15 -05:00
parent 084c5eab2f
commit 9cc06bcf2a

View file

@ -40,9 +40,11 @@ namespace gay.lilyy.aaccore
} }
public static Transform FindChildRecursive(Transform parent, string name) public static Transform FindChildRecursive(Transform parent, string name)
{ {
Transform childTransform = parent.GetComponentsInChildren<Transform>() return parent.GetComponentsInChildren<Transform>().FirstOrDefault(t => t.gameObject.name == name);
.FirstOrDefault(t => t.gameObject.name == name); }
return childTransform; public static Transform[] FindChildrenRecursive(Transform parent, string name)
{
return parent.GetComponentsInChildren<Transform>().Where(t => t.gameObject.name == name).ToArray();
} }
public static AacFlClip CreateConstraintWeightClip(AACAssets assets, VRCParentConstraint constraint, int index, int indexCount) { public static AacFlClip CreateConstraintWeightClip(AACAssets assets, VRCParentConstraint constraint, int index, int indexCount) {