1 void Start() 2 { 3 //获取当前对象 4 GameObject l1 = this.gameObject; 5 6 //获取指定对象 7 GameObject l2 = GameObject.Find("ls1"); 8 print(l1); 9 10 }