FindChildrenRecursive
This commit is contained in:
parent
084c5eab2f
commit
9cc06bcf2a
1 changed files with 5 additions and 3 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue