var tameObject:GameObject[];
function Start()
{
 tameObject= FindObjectsOfType(GameObject) as GameObject[];
}
function Update()
{
 for(var i:GameObject in tameObject)
 {
   Debug.Log(i.name);
 }
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
猜你喜欢
  • 2022-12-23
  • 2021-10-03
  • 2021-11-12
  • 2022-12-23
  • 2021-12-20
  • 2021-10-22
  • 2021-06-24
相关资源
相似解决方案