GUI.SetNextControlName("InputFieldLC");   
inputLC = GUI.TextField(new Rect(Screen.width / 2 + 240,Screen.height - 30,100,20),inputLC);   
if(GUI.Button(new Rect(Screen.width / 2 + 340, Screen.height - 30,40,20),"定位"))  
{   
    if(wwwIng == false)   
    {     
        wwwIng = true;    
        Application.ExternalCall("DingWeiLC", qjModel.lloryl, inputLC, qjModel.lx);    
    }   
}      
if (Event.current.isKey && Event.current.keyCode == KeyCode.Return && GUI.GetNameOfFocusedControl() == "InputFieldLC")  
{    
    if(wwwIng == false)   
    {    
        wwwIng = true;     
        Application.ExternalCall("DingWeiLC", qjModel.lloryl, inputLC, qjModel.lx);    
    }   
}

相关文章:

  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
猜你喜欢
  • 2021-07-12
  • 2021-06-22
  • 2022-01-19
  • 2021-06-24
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
相关资源
相似解决方案