其他分享
首页 > 其他分享> > Unity之光标默认聚焦在InputField

Unity之光标默认聚焦在InputField

作者:互联网

        password.ActivateInputField();//方法1
        UnityEngine.EventSystems.EventSystem.current.SetSelectedGameObject(userName.gameObject);//方法2
        
        ps:password和userName都是InputField组件

标签:userName,ps,InputField,EventSystem,gameObject,Unity,password,光标
来源: https://blog.csdn.net/itsxwz/article/details/95312676