Campo de entrada de foco da unidade
MyInputField.Select();
MyInputField.ActivateInputField();
FocusPlayer
MyInputField.Select();
MyInputField.ActivateInputField();
using UnityEngine;
using UnityEngine.EventSystems;
public class MainMenu : MonoBehaviour
{
public EventSystem eventSystem;
public void SetSelected(GameObject setSelected)
{
eventSystem.SetSelectedGameObject(setSelected, null);
}
}