List<Transform> objs = new List<Transform>();
for (int i = 0; i < transform.childCount; i++)
{
  objs.Add(transform.GetChild(i));
}
objs.Sort(delegate(Transform x, Transform y) { return x.position.y.CompareTo(y.position.y); });

相关文章:

  • 2021-10-06
  • 2022-12-23
  • 2021-06-02
  • 2021-04-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-05-06
猜你喜欢
  • 2022-12-23
  • 2021-08-19
  • 2021-07-18
  • 2022-12-23
  • 2021-04-08
  • 2022-12-23
  • 2021-09-19
相关资源
相似解决方案