Transform GetTransform(Transform check,string name)
{
  foreach (Transform t in check.GetComponentsInChildren<Transform>())
  {
    if(t.name==name){return t;}
    GetTransform(t,name);
  }
  return null;
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2021-04-05
  • 2021-11-23
  • 2021-08-31
  • 2021-12-20
  • 2022-02-04
猜你喜欢
  • 2021-07-28
  • 2022-12-23
  • 2021-04-05
  • 2021-08-16
  • 2021-04-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案