FindChildRecursive allows disabled
This commit is contained in:
parent
d11bf80aac
commit
f514f8f9c3
1 changed files with 2 additions and 2 deletions
|
|
@ -40,11 +40,11 @@ namespace gay.lilyy.aaccore
|
|||
}
|
||||
public static Transform FindChildRecursive(Transform parent, string name)
|
||||
{
|
||||
return parent.GetComponentsInChildren<Transform>().FirstOrDefault(t => t.gameObject.name == name);
|
||||
return parent.GetComponentsInChildren<Transform>(true).FirstOrDefault(t => t.gameObject.name == name);
|
||||
}
|
||||
public static Transform[] FindChildrenRecursive(Transform parent, string name)
|
||||
{
|
||||
return parent.GetComponentsInChildren<Transform>().Where(t => t.gameObject.name == name).ToArray();
|
||||
return parent.GetComponentsInChildren<Transform>(true).Where(t => t.gameObject.name == name).ToArray();
|
||||
}
|
||||
|
||||
public static AacFlClip CreateConstraintWeightClip(AACAssets assets, VRCParentConstraint constraint, int index, int indexCount) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue